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.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.001671/0.001671, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002001/0.002001, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.485/1.485, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2063/0.2063, allocations: 44.91 MB / 355.8 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 71.88 kB / 0.4886 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1223, allocations: 65.41 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004181/0.1265, allocations: 2.508 MB / 0.5549 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.1281, allocations: 0.8411 MB / 0.5557 GB, free: 6.766 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.1282, allocations: 4 kB / 0.5557 GB, free: 6.762 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.1284, allocations: 59.44 kB / 0.5558 GB, free: 6.703 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003037/0.1287, allocations: 111.5 kB / 0.5559 GB, free: 6.594 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.129, allocations: 107.8 kB / 0.556 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004174/0.1294, allocations: 358.8 kB / 0.5563 GB, free: 6.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1296, allocations: 64.72 kB / 0.5564 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.1299, allocations: 151.5 kB / 0.5565 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.1301, allocations: 151.3 kB / 0.5567 GB, free: 5.777 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.824e-05/0.1301, allocations: 32 kB / 0.5567 GB, free: 5.746 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.429e-05/0.1302, allocations: 32 kB / 0.5567 GB, free: 5.715 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.439e-05/0.1303, allocations: 75.69 kB / 0.5568 GB, free: 5.641 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.1305, allocations: 159.2 kB / 0.5569 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004414/0.1309, allocations: 382.4 kB / 0.5573 GB, free: 5.109 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1309, allocations: 0 / 0.5573 GB, free: 5.109 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1309, allocations: 0 / 0.5573 GB, free: 5.109 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1309, allocations: 0 / 0.5573 GB, free: 5.109 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.001185/0.1321, allocations: 0.6311 MB / 0.5579 GB, free: 4.426 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1322, allocations: 12.03 kB / 0.5579 GB, free: 4.414 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.229e-05/0.1322, allocations: 8.75 kB / 0.558 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.418e-05/0.1322, allocations: 58.72 kB / 0.558 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.1324, allocations: 44.7 kB / 0.558 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.1328, allocations: 270.8 kB / 0.5583 GB, free: 3.988 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.1328, allocations: 16.94 kB / 0.5583 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.1329, allocations: 28.31 kB / 0.5584 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.1334, allocations: 252.8 kB / 0.5586 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1334, allocations: 0 / 0.5586 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.1334, allocations: 11.94 kB / 0.5586 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1334, allocations: 12 kB / 0.5586 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005498/0.134, allocations: 226.1 kB / 0.5588 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.1356, allocations: 0.8756 MB / 0.5597 GB, free: 2.512 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.1362, allocations: 286.6 kB / 0.56 GB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002863/0.1364, allocations: 120.8 kB / 0.5601 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.718e-05/0.1365, allocations: 4 kB / 0.5601 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.1365, allocations: 38.56 kB / 0.5601 GB, free: 2.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.893e-06/0.1365, allocations: 4 kB / 0.5601 GB, free: 2.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004946/0.1415, allocations: 1.258 MB / 0.5613 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.1415, allocations: 51.41 kB / 0.5614 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.1418, allocations: 241 kB / 0.5616 GB, free: 396 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.1419, allocations: 29.7 kB / 0.5617 GB, free: 360 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.142, allocations: 173.2 kB / 0.5618 GB, free: 184 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.1421, allocations: 111 kB / 0.5619 GB, free: 72 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1422, allocations: 49.7 kB / 0.562 GB, free: 16 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002294/0.1424, allocations: 338.8 kB / 0.5623 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.1427, allocations: 91.95 kB / 0.5624 GB, free: 15.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.1429, allocations: 129.8 kB / 0.5625 GB, free: 15.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.1435, allocations: 239.2 kB / 0.5627 GB, free: 15.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1435, allocations: 0 / 0.5627 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00196/0.1454, allocations: 0.5373 MB / 0.5633 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1455, allocations: 8 kB / 0.5633 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/0.1455, allocations: 0 / 0.5633 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/0.1473, allocations: 315.1 kB / 0.5636 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1475, allocations: 31.91 kB / 0.5636 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00873/0.1562, allocations: 6.851 MB / 0.5703 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.1565, allocations: 24.12 kB / 0.5703 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.1565, allocations: 8 kB / 0.5703 GB, free: 6.852 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.0002263/0.1567, allocations: 145.8 kB / 0.5705 GB, free: 6.699 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.1568, allocations: 39.75 kB / 0.5705 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.1588, allocations: 0.5433 MB / 0.571 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.1588, allocations: 7.938 kB / 0.571 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1588, allocations: 0 / 0.571 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1588, allocations: 0 / 0.571 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005232/0.1593, allocations: 361.3 kB / 0.5714 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1593, allocations: 3.984 kB / 0.5714 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.1594, allocations: 19.98 kB / 0.5714 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001597/0.161, allocations: 315.1 kB / 0.5717 GB, free: 5.348 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.1611, allocations: 8 kB / 0.5717 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009176/0.1702, allocations: 6.894 MB / 0.5784 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1702, allocations: 320 / 0.5784 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.1722, allocations: 0.6195 MB / 0.579 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.1723, allocations: 108.9 kB / 0.5792 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.1723, allocations: 8 kB / 0.5792 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1725, allocations: 12 kB / 0.5792 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.1727, allocations: 35.88 kB / 0.5792 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.1727, allocations: 8 kB / 0.5792 GB, free: 13.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.1729, allocations: 178 kB / 0.5794 GB, free: 12.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1729, allocations: 0 / 0.5794 GB, free: 12.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005677/0.1735, allocations: 123.9 kB / 0.5795 GB, free: 12.75 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.002216/0.1757, allocations: 1.157 MB / 0.5806 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.177, allocations: 0.7528 MB / 0.5814 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.177, allocations: 4 kB / 0.5814 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.1784, allocations: 0.7172 MB / 0.5821 GB, free: 9.977 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.1788, allocations: 20.56 kB / 0.5821 GB, free: 9.957 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006792/0.1856, allocations: 3.169 MB / 0.5852 GB, free: 6.664 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.186, allocations: 0.7795 MB / 0.5859 GB, free: 5.859 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.494e-05/0.1861, allocations: 13.95 kB / 0.586 GB, free: 5.844 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.1862, allocations: 79.41 kB / 0.586 GB, free: 5.766 MB / 446.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1862, allocations: 3.938 kB / 0.586 GB, free: 5.762 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2845/0.4707, allocations: 11.07 MB / 0.5969 GB, free: 38.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.54, allocations: 12.16 kB / 0.5969 GB, free: 38.65 MB / 446.1 MB " [Timeout remaining time 646] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.627536188985687]