Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.001826/0.001826, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.002058/0.002058, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.5/1.5, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2542/0.2542, allocations: 46.93 MB / 357.1 MB, free: 10.3 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.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 79.88 kB / 0.4909 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.126, allocations: 65.99 MB / 0.5554 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004091/0.1301, allocations: 2.691 MB / 0.558 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.1315, allocations: 0.8021 MB / 0.5588 GB, free: 2.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1316, allocations: 8 kB / 0.5588 GB, free: 2.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.1319, allocations: 71.31 kB / 0.5589 GB, free: 2.242 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.1321, allocations: 107.2 kB / 0.559 GB, free: 2.137 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.1324, allocations: 107.9 kB / 0.5591 GB, free: 2.031 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005041/0.1329, allocations: 426.2 kB / 0.5595 GB, free: 1.613 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.1331, allocations: 99.28 kB / 0.5596 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.1333, allocations: 151.5 kB / 0.5597 GB, free: 1.363 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.1335, allocations: 175.2 kB / 0.5599 GB, free: 1.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.684e-05/0.1336, allocations: 32 kB / 0.5599 GB, free: 1.16 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.094e-05/0.1336, allocations: 32 kB / 0.5599 GB, free: 1.129 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.1337, allocations: 79.7 kB / 0.56 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.1339, allocations: 187 kB / 0.5602 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.1343, allocations: 426.1 kB / 0.5606 GB, free: 460 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1343, allocations: 4 kB / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1344, allocations: 0 / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.1344, allocations: 0 / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001124/0.1355, allocations: 0.6858 MB / 0.5613 GB, free: 15.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1355, allocations: 8.031 kB / 0.5613 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.225e-05/0.1356, allocations: 70.72 kB / 0.5613 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.1357, allocations: 40.7 kB / 0.5614 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004027/0.1361, allocations: 286.7 kB / 0.5617 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.1361, allocations: 33.31 kB / 0.5617 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.1362, allocations: 32.38 kB / 0.5617 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007103/0.1369, allocations: 358 kB / 0.5621 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.1369, allocations: 0 / 0.5621 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1369, allocations: 15.98 kB / 0.5621 GB, free: 14.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1369, allocations: 8 kB / 0.5621 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.1376, allocations: 271.8 kB / 0.5623 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.1398, allocations: 1.343 MB / 0.5637 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.1403, allocations: 194.6 kB / 0.5638 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.1405, allocations: 79.45 kB / 0.5639 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.1406, allocations: 4 kB / 0.5639 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.1406, allocations: 38.56 kB / 0.564 GB, free: 12.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.1406, allocations: 0 / 0.564 GB, free: 12.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008463/0.1414, allocations: 253.3 kB / 0.5642 GB, free: 12.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.911e-05/0.1415, allocations: 132.6 kB / 0.5643 GB, free: 12.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003995/0.1419, allocations: 341.7 kB / 0.5647 GB, free: 11.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.142, allocations: 33.64 kB / 0.5647 GB, free: 11.94 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.1421, allocations: 240.2 kB / 0.5649 GB, free: 11.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.286e-05/0.1422, allocations: 59.56 kB / 0.565 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1423, allocations: 57.94 kB / 0.565 GB, free: 11.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.1425, allocations: 342.8 kB / 0.5654 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002511/0.1428, allocations: 84.44 kB / 0.5654 GB, free: 11.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.1431, allocations: 168.7 kB / 0.5656 GB, free: 10.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005572/0.1436, allocations: 254.9 kB / 0.5658 GB, free: 10.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1436, allocations: 0 / 0.5658 GB, free: 10.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007223/0.1444, allocations: 313.1 kB / 0.5661 GB, free: 10.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.1444, allocations: 11.94 kB / 0.5661 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1444, allocations: 0 / 0.5661 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.1444, allocations: 8 kB / 0.5662 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.1449, allocations: 88.11 kB / 0.5662 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.1449, allocations: 11.94 kB / 0.5662 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.1452, allocations: 51.64 kB / 0.5663 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.1452, allocations: 12 kB / 0.5663 GB, free: 10.17 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.1454, allocations: 149.7 kB / 0.5665 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.1455, allocations: 31.81 kB / 0.5665 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.1456, allocations: 30.41 kB / 0.5665 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1456, allocations: 4 kB / 0.5665 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1456, allocations: 0 / 0.5665 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1456, allocations: 7.984 kB / 0.5665 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008431/0.1464, allocations: 0.5915 MB / 0.5671 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1464, allocations: 4 kB / 0.5671 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002972/0.1467, allocations: 64.03 kB / 0.5672 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.1467, allocations: 4 kB / 0.5672 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1467, allocations: 3.938 kB / 0.5672 GB, free: 9.199 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1467, allocations: 4 kB / 0.5672 GB, free: 9.195 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1467, allocations: 4 kB / 0.5672 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.1474, allocations: 400.7 kB / 0.5676 GB, free: 8.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.836e-05/0.1475, allocations: 108.9 kB / 0.5677 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.1475, allocations: 7.938 kB / 0.5677 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.1477, allocations: 24.03 kB / 0.5677 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.1478, allocations: 19.98 kB / 0.5677 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1478, allocations: 4 kB / 0.5677 GB, free: 8.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.1481, allocations: 235.2 kB / 0.5679 GB, free: 8.359 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1481, allocations: 0 / 0.5679 GB, free: 8.359 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004055/0.1485, allocations: 71.89 kB / 0.568 GB, free: 8.289 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009478/0.1494, allocations: 0.9381 MB / 0.5689 GB, free: 7.305 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005763/0.15, allocations: 192.3 kB / 0.5691 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.15, allocations: 0 / 0.5691 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.1503, allocations: 75.83 kB / 0.5692 GB, free: 7.043 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.1507, allocations: 21.44 kB / 0.5692 GB, free: 7.023 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004258/0.1549, allocations: 3.002 MB / 0.5721 GB, free: 3.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000483/0.1554, allocations: 0.7792 MB / 0.5729 GB, free: 3.039 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.1555, allocations: 25.92 kB / 0.5729 GB, free: 3.012 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.1557, allocations: 107.4 kB / 0.573 GB, free: 2.906 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1557, allocations: 0 / 0.573 GB, free: 2.906 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.184, allocations: 4.996 MB / 0.5779 GB, free: 13.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.622/8.806, allocations: 9.844 kB / 0.5779 GB, free: 13.98 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.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: 11.79710016399622]