Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001955/0.001955, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002442/0.002442, allocations: 212.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 230.5 MB / 257.4 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 71.88 kB / 377.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3089, allocations: 53.41 MB / 431.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004516/0.3134, allocations: 2.884 MB / 434.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3148, allocations: 0.8021 MB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.3149, allocations: 4 kB / 434.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002339/0.3152, allocations: 71.36 kB / 435 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002687/0.3154, allocations: 99.19 kB / 435.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.3157, allocations: 115.8 kB / 435.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.3162, allocations: 394.5 kB / 435.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.3164, allocations: 91.34 kB / 435.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003331/0.3167, allocations: 167.4 kB / 435.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002527/0.317, allocations: 175.2 kB / 436 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.699e-05/0.3171, allocations: 36 kB / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.461e-05/0.3171, allocations: 35.94 kB / 436 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.376e-05/0.3172, allocations: 83.69 kB / 436.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.3174, allocations: 179.1 kB / 436.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000477/0.3178, allocations: 410.6 kB / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3178, allocations: 0 / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3178, allocations: 0 / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3178, allocations: 0 / 436.7 MB, free: 1.125 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001232/0.3191, allocations: 0.5869 MB / 437.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3191, allocations: 12.03 kB / 437.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.36e-05/0.3192, allocations: 66.72 kB / 437.4 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.3193, allocations: 44.7 kB / 437.4 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.3197, allocations: 221.7 kB / 437.6 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.3197, allocations: 25.03 kB / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.3197, allocations: 32.36 kB / 437.7 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006131/0.3204, allocations: 294.2 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3204, allocations: 0 / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.3204, allocations: 23.92 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3204, allocations: 8 kB / 438 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006134/0.321, allocations: 250.5 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.3228, allocations: 1.041 MB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.3232, allocations: 150.5 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.3233, allocations: 68.81 kB / 439.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.3234, allocations: 3.938 kB / 439.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.3234, allocations: 34.56 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.3234, allocations: 0 / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002028/0.3254, allocations: 0.5938 MB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.3255, allocations: 55.41 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.3258, allocations: 292.1 kB / 440.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.3258, allocations: 33.7 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.326, allocations: 232.1 kB / 440.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.568e-05/0.3261, allocations: 79.31 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3262, allocations: 65.66 kB / 440.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3264, allocations: 334.8 kB / 441.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/0.3267, allocations: 99.92 kB / 441.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003803/0.327, allocations: 192 kB / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.3277, allocations: 301.1 kB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3277, allocations: 8 kB / 441.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009104/0.3286, allocations: 397.4 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3286, allocations: 8 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3286, allocations: 4 kB / 442.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.3289, allocations: 65.67 kB / 442.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.3292, allocations: 71.89 kB / 442.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.3316, allocations: 2.626 MB / 444.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.3319, allocations: 27.92 kB / 445 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.3319, allocations: 12 kB / 445 MB, free: 8.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001954/0.3321, allocations: 161.6 kB / 445.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.3322, allocations: 35.8 kB / 445.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-05/0.3323, allocations: 34.36 kB / 445.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3323, allocations: 0 / 445.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3323, allocations: 0 / 445.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3323, allocations: 4 kB / 445.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004148/0.3327, allocations: 312.4 kB / 445.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3327, allocations: 0 / 445.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.3329, allocations: 35.97 kB / 445.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.3331, allocations: 57.67 kB / 445.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.3331, allocations: 8 kB / 445.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.3353, allocations: 2.626 MB / 448.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3353, allocations: 4 kB / 448.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007468/0.3361, allocations: 380.8 kB / 448.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/0.3361, allocations: 23.81 kB / 448.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.3362, allocations: 11.98 kB / 448.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.3364, allocations: 15.98 kB / 448.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.3364, allocations: 11.97 kB / 448.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3364, allocations: 8 kB / 448.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.3367, allocations: 207.1 kB / 448.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3367, allocations: 3.938 kB / 448.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.3371, allocations: 72 kB / 449 MB, free: 3.977 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001098/0.3382, allocations: 0.9119 MB / 449.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000997/0.3392, allocations: 473 kB / 450.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3392, allocations: 4 kB / 450.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005488/0.3397, allocations: 346 kB / 450.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.3401, allocations: 35.95 kB / 450.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.3448, allocations: 3.026 MB / 453.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.3453, allocations: 0.7791 MB / 454.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.3454, allocations: 30.41 kB / 454.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3456, allocations: 103.4 kB / 454.7 MB, free: 14 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3456, allocations: 0 / 454.7 MB, free: 14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03962/0.3852, allocations: 6.037 MB / 460.7 MB, free: 8.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.47, allocations: 8 kB / 460.7 MB, free: 8.113 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable magFluxSensor.Phi in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable magFluxSensor.Phi from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! Error: Could not read variable voltageSensor.v in file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv. Warning: Get data of variable voltageSensor.v from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.097393877000286]