Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.237/0.237, allocations: 46.92 MB / 357.1 MB, free: 10.38 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 67.89 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.121, allocations: 65.99 MB / 0.5554 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004087/0.1251, allocations: 2.502 MB / 0.5578 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.1266, allocations: 0.8373 MB / 0.5586 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1267, allocations: 4 kB / 0.5586 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.1269, allocations: 59.44 kB / 0.5587 GB, free: 2.457 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002795/0.1272, allocations: 107.2 kB / 0.5588 GB, free: 2.352 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.1275, allocations: 103.9 kB / 0.5589 GB, free: 2.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.1279, allocations: 358.7 kB / 0.5592 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.128, allocations: 68.7 kB / 0.5593 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.1283, allocations: 143.5 kB / 0.5594 GB, free: 1.691 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.1285, allocations: 167.2 kB / 0.5596 GB, free: 1.527 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.1286, allocations: 32 kB / 0.5596 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.83e-05/0.1286, allocations: 36 kB / 0.5597 GB, free: 1.461 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.765e-05/0.1287, allocations: 67.7 kB / 0.5597 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1288, allocations: 151.2 kB / 0.5599 GB, free: 1.246 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.1293, allocations: 382.4 kB / 0.5602 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1293, allocations: 4 kB / 0.5602 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1293, allocations: 0 / 0.5602 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1293, allocations: 0 / 0.5602 GB, free: 0.8672 MB / 414.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.001193/0.1305, allocations: 0.6311 MB / 0.5609 GB, free: 188 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1305, allocations: 8.031 kB / 0.5609 GB, free: 180 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.227e-05/0.1306, allocations: 62.66 kB / 0.5609 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1307, allocations: 44.7 kB / 0.561 GB, free: 64 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.1311, allocations: 278.8 kB / 0.5612 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.1311, allocations: 20.88 kB / 0.5612 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.454e-05/0.1312, allocations: 24.38 kB / 0.5613 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.1317, allocations: 249 kB / 0.5615 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1318, allocations: 3.938 kB / 0.5615 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.1318, allocations: 8 kB / 0.5615 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1318, allocations: 8 kB / 0.5615 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005585/0.1323, allocations: 234.1 kB / 0.5618 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.1339, allocations: 0.8794 MB / 0.5626 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005829/0.1345, allocations: 282.7 kB / 0.5629 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.1348, allocations: 120.8 kB / 0.563 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.1348, allocations: 11.97 kB / 0.563 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.1348, allocations: 42.5 kB / 0.563 GB, free: 13.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.403e-06/0.1348, allocations: 0 / 0.563 GB, free: 13.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.004963/0.1398, allocations: 1.254 MB / 0.5643 GB, free: 12.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1399, allocations: 59.34 kB / 0.5643 GB, free: 12.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.1401, allocations: 233 kB / 0.5646 GB, free: 12.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.1402, allocations: 29.7 kB / 0.5646 GB, free: 12.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1403, allocations: 173.3 kB / 0.5647 GB, free: 11.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.438e-05/0.1404, allocations: 107.1 kB / 0.5648 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1405, allocations: 49.7 kB / 0.5649 GB, free: 11.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1406, allocations: 338.8 kB / 0.5652 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.1409, allocations: 91.95 kB / 0.5653 GB, free: 11.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.1412, allocations: 129.8 kB / 0.5654 GB, free: 11.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005243/0.1417, allocations: 235.3 kB / 0.5657 GB, free: 10.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1417, allocations: 3.938 kB / 0.5657 GB, free: 10.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001915/0.1436, allocations: 0.5412 MB / 0.5662 GB, free: 10.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.1436, allocations: 4 kB / 0.5662 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1436, allocations: 0 / 0.5662 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.1454, allocations: 315.1 kB / 0.5665 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.1456, allocations: 27.97 kB / 0.5665 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008521/0.1541, allocations: 6.844 MB / 0.5732 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.1544, allocations: 27.81 kB / 0.5732 GB, free: 2.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.1544, allocations: 12 kB / 0.5732 GB, free: 2.609 MB / 430.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.0001843/0.1546, allocations: 141.7 kB / 0.5734 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.1546, allocations: 31.88 kB / 0.5734 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.1566, allocations: 0.5473 MB / 0.5739 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1566, allocations: 3.984 kB / 0.5739 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1566, allocations: 11.94 kB / 0.574 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1566, allocations: 3.984 kB / 0.574 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004991/0.1571, allocations: 361.3 kB / 0.5743 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1571, allocations: 0 / 0.5743 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.1572, allocations: 15.98 kB / 0.5743 GB, free: 1.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001654/0.1589, allocations: 323.2 kB / 0.5746 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1589, allocations: 4 kB / 0.5746 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00858/0.1675, allocations: 6.89 MB / 0.5814 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1675, allocations: 8.047 kB / 0.5814 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.1695, allocations: 0.6195 MB / 0.582 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1696, allocations: 108.8 kB / 0.5821 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.1696, allocations: 11.94 kB / 0.5821 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.1698, allocations: 11.98 kB / 0.5821 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.1699, allocations: 27.95 kB / 0.5821 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.17, allocations: 11.94 kB / 0.5821 GB, free: 8.801 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002096/0.1702, allocations: 170 kB / 0.5823 GB, free: 8.637 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1702, allocations: 0 / 0.5823 GB, free: 8.637 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005519/0.1707, allocations: 127.9 kB / 0.5824 GB, free: 8.512 MB / 446.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.002289/0.173, allocations: 1.16 MB / 0.5836 GB, free: 7.312 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.1744, allocations: 0.7528 MB / 0.5843 GB, free: 6.508 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1744, allocations: 0 / 0.5843 GB, free: 6.508 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.1758, allocations: 0.7172 MB / 0.585 GB, free: 5.738 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.1762, allocations: 20.56 kB / 0.585 GB, free: 5.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00689/0.1831, allocations: 3.174 MB / 0.5881 GB, free: 2.418 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004878/0.1835, allocations: 0.7717 MB / 0.5889 GB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.645e-05/0.1836, allocations: 13.94 kB / 0.5889 GB, free: 1.605 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.1838, allocations: 87.41 kB / 0.589 GB, free: 1.52 MB / 446.1 MB Notification: Performance of SimCode: time 1.302e-06/0.1838, allocations: 0 / 0.589 GB, free: 1.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2747/0.4585, allocations: 11.03 MB / 0.5997 GB, free: 34.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.2, allocations: 15.55 kB / 0.5997 GB, free: 34.74 MB / 446.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.16883018799126]