Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001697/0.001697, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2659/0.2659, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002665, allocations: 75.05 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1486, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004576/0.1532, allocations: 2.49 MB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1547, allocations: 0.8334 MB / 483.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.155, allocations: 4 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.1553, allocations: 55.52 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003619/0.1556, allocations: 111.2 kB / 483.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.156, allocations: 107.8 kB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.1565, allocations: 350.7 kB / 484.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1567, allocations: 92.92 kB / 484.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.157, allocations: 143.5 kB / 484.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.1574, allocations: 155.3 kB / 484.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/0.1574, allocations: 32 kB / 484.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.595e-05/0.1575, allocations: 35.98 kB / 484.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.5e-05/0.1576, allocations: 67.75 kB / 484.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1578, allocations: 159.1 kB / 484.7 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.1582, allocations: 370.7 kB / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1582, allocations: 0 / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1582, allocations: 0 / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1582, allocations: 4 kB / 485.1 MB, free: 192 kB / 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.001225/0.1594, allocations: 0.6273 MB / 485.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.1595, allocations: 8.031 kB / 485.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.618e-05/0.1596, allocations: 62.72 kB / 485.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.1598, allocations: 36.56 kB / 485.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.1601, allocations: 266.6 kB / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.1601, allocations: 16.94 kB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.1602, allocations: 28.36 kB / 486.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.1607, allocations: 257 kB / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1607, allocations: 0 / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.1608, allocations: 8 kB / 486.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.1608, allocations: 8 kB / 486.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000511/0.1613, allocations: 234.1 kB / 486.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.1628, allocations: 0.8908 MB / 487.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005476/0.1633, allocations: 305.1 kB / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.1636, allocations: 144.8 kB / 488 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.1637, allocations: 0 / 488 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1637, allocations: 34.56 kB / 488 MB, free: 13.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.1637, allocations: 3.938 kB / 488 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004577/0.1683, allocations: 1.266 MB / 489.3 MB, free: 11.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.1684, allocations: 59.39 kB / 489.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.1686, allocations: 225 kB / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.1687, allocations: 41.64 kB / 489.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1688, allocations: 165.1 kB / 489.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.987e-05/0.1689, allocations: 102.5 kB / 489.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.169, allocations: 57.61 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1692, allocations: 334.8 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.1694, allocations: 91.81 kB / 490.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.1697, allocations: 133.8 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.1702, allocations: 228.1 kB / 490.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1702, allocations: 0 / 490.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001743/0.1719, allocations: 0.5528 MB / 491.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1719, allocations: 4 kB / 491.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.172, allocations: 0 / 491.2 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.1737, allocations: 323.1 kB / 491.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.1739, allocations: 23.98 kB / 491.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007522/0.1814, allocations: 6.84 MB / 498.4 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.1817, allocations: 23.86 kB / 498.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.1817, allocations: 12.06 kB / 498.5 MB, free: 1.906 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.0001833/0.1819, allocations: 152.7 kB / 498.6 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.182, allocations: 27.62 kB / 498.6 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.1838, allocations: 0.5517 MB / 499.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1838, allocations: 4 kB / 499.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1838, allocations: 3.938 kB / 499.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1838, allocations: 3.938 kB / 499.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.1842, allocations: 357.3 kB / 499.5 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1843, allocations: 3.938 kB / 499.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.1844, allocations: 20.16 kB / 499.6 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.1859, allocations: 319.2 kB / 499.9 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.186, allocations: 4 kB / 499.9 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008237/0.1942, allocations: 6.908 MB / 0.4949 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1943, allocations: 0 / 0.4949 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.1961, allocations: 0.6234 MB / 0.4955 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.1962, allocations: 108.6 kB / 0.4956 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.1962, allocations: 7.984 kB / 0.4956 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.1964, allocations: 12 kB / 0.4956 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.1965, allocations: 31.95 kB / 0.4957 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.1966, allocations: 4 kB / 0.4957 GB, free: 8.094 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.1967, allocations: 178 kB / 0.4958 GB, free: 7.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1968, allocations: 0 / 0.4958 GB, free: 7.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006112/0.1974, allocations: 119.8 kB / 0.496 GB, free: 7.801 MB / 382.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.002173/0.1996, allocations: 1.164 MB / 0.4971 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.2009, allocations: 0.7686 MB / 0.4978 GB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.201, allocations: 0 / 0.4978 GB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.2023, allocations: 0.7328 MB / 0.4986 GB, free: 4.992 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.2027, allocations: 28.69 kB / 0.4986 GB, free: 4.965 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/0.2091, allocations: 3.159 MB / 0.5017 GB, free: 1.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.2096, allocations: 0.7756 MB / 0.5024 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.218e-05/0.2097, allocations: 9.953 kB / 0.5024 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2098, allocations: 83.41 kB / 0.5025 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2098, allocations: 0 / 0.5025 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2291/0.439, allocations: 10.79 MB / 0.5131 GB, free: 40.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.11, allocations: 2.531 kB / 0.5131 GB, free: 40.48 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv","/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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches