Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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.001839/0.001839, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.002197/0.002197, allocations: 215 kB / 21.45 MB, free: 1.641 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.529/1.529, 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.223/0.223, allocations: 44.9 MB / 355.8 MB, free: 12.36 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.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",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.002022/0.002022, allocations: 76.16 kB / 0.4885 GB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1303, allocations: 65.41 MB / 0.5524 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003261/0.1336, allocations: 1.943 MB / 0.5543 GB, free: 8.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.1346, allocations: 0.6076 MB / 0.5549 GB, free: 7.727 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.676e-05/0.1347, allocations: 4 kB / 0.5549 GB, free: 7.723 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.1349, allocations: 35.66 kB / 0.5549 GB, free: 7.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.135, allocations: 39.7 kB / 0.555 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.1351, allocations: 39.95 kB / 0.555 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.1353, allocations: 151.4 kB / 0.5552 GB, free: 7.461 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.1355, allocations: 57.73 kB / 0.5552 GB, free: 7.402 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.1356, allocations: 59.78 kB / 0.5553 GB, free: 7.344 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.1357, allocations: 63.7 kB / 0.5553 GB, free: 7.281 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.1357, allocations: 12 kB / 0.5554 GB, free: 7.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.433e-05/0.1358, allocations: 12 kB / 0.5554 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.1358, allocations: 27.92 kB / 0.5554 GB, free: 7.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.136e-05/0.1359, allocations: 75.64 kB / 0.5555 GB, free: 7.156 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.1361, allocations: 155.3 kB / 0.5556 GB, free: 7.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1361, allocations: 0 / 0.5556 GB, free: 7.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1361, allocations: 4 kB / 0.5556 GB, free: 7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.1361, allocations: 4 kB / 0.5556 GB, free: 6.996 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0007032/0.1368, allocations: 447.1 kB / 0.556 GB, free: 6.508 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1369, allocations: 8.031 kB / 0.5561 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.628e-05/0.1369, allocations: 4.469 kB / 0.5561 GB, free: 6.496 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.939e-05/0.1369, allocations: 54.66 kB / 0.5561 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.137, allocations: 20.84 kB / 0.5561 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1373, allocations: 204.1 kB / 0.5563 GB, free: 6.176 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.1373, allocations: 12.66 kB / 0.5563 GB, free: 6.164 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.1373, allocations: 12.38 kB / 0.5563 GB, free: 6.152 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003463/0.1377, allocations: 147.7 kB / 0.5565 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1377, allocations: 0 / 0.5565 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.1377, allocations: 4 kB / 0.5565 GB, free: 6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.1377, allocations: 4 kB / 0.5565 GB, free: 5.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.138, allocations: 108.8 kB / 0.5566 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1391, allocations: 0.5988 MB / 0.5572 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.1393, allocations: 66.61 kB / 0.5572 GB, free: 5.148 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1394, allocations: 32.97 kB / 0.5573 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.1395, allocations: 0 / 0.5573 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.1395, allocations: 30.56 kB / 0.5573 GB, free: 5.074 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.1395, allocations: 0 / 0.5573 GB, free: 5.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004117/0.1399, allocations: 109.5 kB / 0.5574 GB, free: 4.961 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.1399, allocations: 67.33 kB / 0.5575 GB, free: 4.883 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.1401, allocations: 149.6 kB / 0.5576 GB, free: 4.723 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.1401, allocations: 25.7 kB / 0.5576 GB, free: 4.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.636e-05/0.1402, allocations: 135.8 kB / 0.5578 GB, free: 4.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.1402, allocations: 23.83 kB / 0.5578 GB, free: 4.531 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.1403, allocations: 29.66 kB / 0.5578 GB, free: 4.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1404, allocations: 318.8 kB / 0.5581 GB, free: 4.176 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1405, allocations: 35.92 kB / 0.5582 GB, free: 4.141 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.1407, allocations: 64.45 kB / 0.5582 GB, free: 4.062 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.1409, allocations: 100.1 kB / 0.5583 GB, free: 3.949 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1409, allocations: 4 kB / 0.5583 GB, free: 3.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002988/0.1412, allocations: 121.5 kB / 0.5584 GB, free: 3.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.1412, allocations: 7.938 kB / 0.5584 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1412, allocations: 128 / 0.5584 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1412, allocations: 15.92 kB / 0.5585 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.1414, allocations: 27.92 kB / 0.5585 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.1414, allocations: 0 / 0.5585 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1415, allocations: 19.88 kB / 0.5585 GB, free: 3.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.1415, allocations: 4 kB / 0.5585 GB, free: 3.746 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.4e-05/0.1416, allocations: 120 kB / 0.5586 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.1416, allocations: 7.953 kB / 0.5586 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.742e-05/0.1417, allocations: 20.25 kB / 0.5587 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1417, allocations: 0 / 0.5587 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1417, allocations: 0 / 0.5587 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1417, allocations: 0 / 0.5587 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.1419, allocations: 209.6 kB / 0.5589 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1419, allocations: 3.938 kB / 0.5589 GB, free: 3.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.142, allocations: 23.97 kB / 0.5589 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.142, allocations: 0 / 0.5589 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.142, allocations: 3.938 kB / 0.5589 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.142, allocations: 0 / 0.5589 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.142, allocations: 0 / 0.5589 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.1423, allocations: 183.5 kB / 0.5591 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.964e-05/0.1424, allocations: 89.05 kB / 0.5591 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.1424, allocations: 3.938 kB / 0.5591 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.932e-05/0.1425, allocations: 8 kB / 0.5592 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.1425, allocations: 3.984 kB / 0.5592 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.1426, allocations: 8 kB / 0.5592 GB, free: 2.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.652e-05/0.1426, allocations: 114.1 kB / 0.5593 GB, free: 2.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1426, allocations: 0 / 0.5593 GB, free: 2.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.1429, allocations: 31.83 kB / 0.5593 GB, free: 2.84 MB / 414.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 (5): * Single equations (assignments): 5 * 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.0006044/0.1435, allocations: 0.7241 MB / 0.56 GB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.1438, allocations: 63.89 kB / 0.5601 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1438, allocations: 0 / 0.5601 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.1439, allocations: 35.91 kB / 0.5601 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1442, allocations: 9.969 kB / 0.5601 GB, free: 1.984 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.1464, allocations: 1.661 MB / 0.5617 GB, free: 232 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.1468, allocations: 0.7002 MB / 0.5624 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.1468, allocations: 12.66 kB / 0.5624 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.853e-05/0.1469, allocations: 35.42 kB / 0.5625 GB, free: 15.45 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1469, allocations: 0 / 0.5625 GB, free: 15.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0195/0.1664, allocations: 2.209 MB / 0.5646 GB, free: 13.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.579/8.746, allocations: 11.81 kB / 0.5646 GB, free: 13.33 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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: 12.265299275983125]