Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 105.7 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 193.3 kB / 18.25 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 241.9 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1998/0.1998, allocations: 44.17 MB / 336.2 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 60.36 kB / 408 MB, free: 27.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09135/0.0926, allocations: 60.83 MB / 468.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003021/0.09565, allocations: 2.489 MB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009814/0.09665, allocations: 0.7518 MB / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.154e-05/0.09674, allocations: 4 kB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.09691, allocations: 51.69 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.09713, allocations: 83.44 kB / 472.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.09731, allocations: 79.91 kB / 472.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.09759, allocations: 346 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.09777, allocations: 104.5 kB / 472.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.09795, allocations: 139.5 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.09811, allocations: 155.3 kB / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.09817, allocations: 28 kB / 473 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.184e-05/0.09821, allocations: 28 kB / 473.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.06e-05/0.09829, allocations: 67.75 kB / 473.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.09842, allocations: 151.2 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.09874, allocations: 359 kB / 473.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.09875, allocations: 0 / 473.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.09876, allocations: 4 kB / 473.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.09877, allocations: 0 / 473.6 MB, free: 9.758 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009782/0.09976, allocations: 0.6119 MB / 474.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.0998, allocations: 8.031 kB / 474.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.196e-05/0.09987, allocations: 66.66 kB / 474.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.962e-05/0.09993, allocations: 32.56 kB / 474.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.1002, allocations: 259.6 kB / 474.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.1002, allocations: 20.94 kB / 474.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.1002, allocations: 24.38 kB / 474.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004466/0.1007, allocations: 249 kB / 474.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1007, allocations: 0 / 474.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.1007, allocations: 15.98 kB / 474.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1008, allocations: 4 kB / 474.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004551/0.1012, allocations: 230.1 kB / 475.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.1024, allocations: 0.8752 MB / 476 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.1029, allocations: 306.7 kB / 476.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1032, allocations: 141.3 kB / 476.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.1032, allocations: 11.97 kB / 476.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.1032, allocations: 30.56 kB / 476.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.303e-06/0.1032, allocations: 0 / 476.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004198/0.1074, allocations: 1.262 MB / 477.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.1075, allocations: 55.41 kB / 477.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.1076, allocations: 213 kB / 478 MB, free: 5.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.1077, allocations: 29.7 kB / 478 MB, free: 5.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.429e-05/0.1078, allocations: 165.1 kB / 478.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.1078, allocations: 110.4 kB / 478.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/0.1079, allocations: 49.7 kB / 478.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.686e-05/0.108, allocations: 334.8 kB / 478.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1082, allocations: 91.95 kB / 478.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.1084, allocations: 121.9 kB / 478.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.1089, allocations: 231.3 kB / 479.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1089, allocations: 0 / 479.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001695/0.1106, allocations: 0.545 MB / 479.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.1106, allocations: 6.5 kB / 479.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-06/0.1106, allocations: 0 / 479.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.1122, allocations: 319.1 kB / 480 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.1123, allocations: 27.97 kB / 480 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05276/0.1651, allocations: 6.821 MB / 486.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.1653, allocations: 27.69 kB / 486.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1653, allocations: 11.98 kB / 486.9 MB, free: 11.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.1654, allocations: 145.8 kB / 487 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.242e-05/0.1655, allocations: 23.72 kB / 487 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.1672, allocations: 0.5463 MB / 487.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1672, allocations: 4 kB / 487.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1672, allocations: 3.938 kB / 487.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1672, allocations: 3.984 kB / 487.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003496/0.1676, allocations: 357.1 kB / 487.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1676, allocations: 192 / 487.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1677, allocations: 27.97 kB / 488 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.1691, allocations: 315.2 kB / 488.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.1692, allocations: 4 kB / 488.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006426/0.1756, allocations: 6.901 MB / 495.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1756, allocations: 0 / 495.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.1772, allocations: 0.6166 MB / 495.8 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.428e-05/0.1773, allocations: 112.6 kB / 495.9 MB, free: 1.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.1773, allocations: 4 kB / 495.9 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1775, allocations: 8 kB / 495.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.1776, allocations: 35.95 kB / 496 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1776, allocations: 4 kB / 496 MB, free: 1.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.1778, allocations: 164.5 kB / 496.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1778, allocations: 4 kB / 496.1 MB, free: 1.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004033/0.1782, allocations: 119.8 kB / 496.2 MB, free: 1.52 MB / 366.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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001823/0.18, allocations: 1.156 MB / 497.4 MB, free: 328 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009031/0.1809, allocations: 0.7564 MB / 498.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1809, allocations: 0 / 498.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.182, allocations: 0.745 MB / 498.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.1823, allocations: 24.61 kB / 498.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.1876, allocations: 3.181 MB / 0.4903 GB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.1879, allocations: 0.7717 MB / 0.4911 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.735e-05/0.188, allocations: 5.969 kB / 0.4911 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.06e-05/0.1881, allocations: 75.41 kB / 0.4912 GB, free: 10.52 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1881, allocations: 3.938 kB / 0.4912 GB, free: 10.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0728/0.2609, allocations: 10.48 MB / 0.5014 GB, free: 244 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.1942/0.4551, allocations: 235.1 kB / 0.5016 GB, free: 56.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.606/3.061, allocations: 0 / 0.5016 GB, free: 56.59 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches