Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 118.3 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00183/0.00183, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.92 MB / 357.7 MB, free: 10.17 MB / 286.1 MB " [Timeout remaining time 180] 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.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 75.89 kB / 0.4916 GB, free: 7.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1302, allocations: 66.05 MB / 0.5561 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003668/0.1339, allocations: 1.936 MB / 0.558 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.135, allocations: 0.6154 MB / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.182e-05/0.1351, allocations: 0 / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.1353, allocations: 27.73 kB / 0.5587 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.1354, allocations: 35.7 kB / 0.5587 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.1356, allocations: 39.94 kB / 0.5587 GB, free: 2.871 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.1358, allocations: 155.4 kB / 0.5589 GB, free: 2.719 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.136, allocations: 57.5 kB / 0.5589 GB, free: 2.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.842e-05/0.1361, allocations: 55.8 kB / 0.559 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.307e-05/0.1362, allocations: 63.7 kB / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.1362, allocations: 12 kB / 0.5591 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.718e-05/0.1362, allocations: 16 kB / 0.5591 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.693e-05/0.1363, allocations: 31.89 kB / 0.5591 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.311e-05/0.1363, allocations: 67.67 kB / 0.5592 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.1366, allocations: 167.2 kB / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1366, allocations: 0 / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1366, allocations: 4 kB / 0.5593 GB, free: 2.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1366, allocations: 0 / 0.5593 GB, free: 2.25 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.0007415/0.1373, allocations: 447 kB / 0.5598 GB, free: 1.762 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1374, allocations: 8.031 kB / 0.5598 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.095e-05/0.1374, allocations: 4.469 kB / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.098e-05/0.1374, allocations: 46.73 kB / 0.5598 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.272e-05/0.1375, allocations: 20.78 kB / 0.5598 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.1378, allocations: 218.9 kB / 0.56 GB, free: 1.426 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1378, allocations: 8.656 kB / 0.5601 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.1378, allocations: 12.38 kB / 0.5601 GB, free: 1.406 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.1382, allocations: 144.2 kB / 0.5602 GB, free: 1.262 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1382, allocations: 0 / 0.5602 GB, free: 1.262 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1382, allocations: 8 kB / 0.5602 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1383, allocations: 0 / 0.5602 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.1386, allocations: 104.8 kB / 0.5603 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.1397, allocations: 0.6065 MB / 0.5609 GB, free: 488 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.14, allocations: 66.58 kB / 0.561 GB, free: 412 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1401, allocations: 33 kB / 0.561 GB, free: 376 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.1401, allocations: 0 / 0.561 GB, free: 376 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1401, allocations: 30.56 kB / 0.561 GB, free: 336 kB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.1401, allocations: 0 / 0.561 GB, free: 336 kB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.000501/0.1406, allocations: 113.5 kB / 0.5611 GB, free: 216 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.1407, allocations: 59.34 kB / 0.5612 GB, free: 144 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.1409, allocations: 161.7 kB / 0.5613 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1409, allocations: 29.7 kB / 0.5614 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.989e-05/0.141, allocations: 127.8 kB / 0.5615 GB, free: 15.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.141, allocations: 19.88 kB / 0.5615 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.141, allocations: 29.67 kB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1412, allocations: 322.8 kB / 0.5618 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1413, allocations: 31.97 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.1415, allocations: 64.2 kB / 0.5619 GB, free: 15.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/0.1417, allocations: 92.2 kB / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1417, allocations: 0 / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003076/0.142, allocations: 125.5 kB / 0.5621 GB, free: 15.08 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.142, allocations: 4 kB / 0.5622 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.142, allocations: 4 kB / 0.5622 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.1421, allocations: 8.062 kB / 0.5622 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1423, allocations: 27.92 kB / 0.5622 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1423, allocations: 4 kB / 0.5622 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.1424, allocations: 19.88 kB / 0.5622 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1424, allocations: 4 kB / 0.5622 GB, free: 15.01 MB / 430.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 0.0001174/0.1425, allocations: 121.8 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.1426, allocations: 7.953 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.1426, allocations: 16.23 kB / 0.5624 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1426, allocations: 4 kB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.1426, allocations: 4 kB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1426, allocations: 0 / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.1429, allocations: 205.9 kB / 0.5626 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1429, allocations: 7.938 kB / 0.5626 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.143, allocations: 19.92 kB / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.143, allocations: 0 / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.143, allocations: 3.938 kB / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.143, allocations: 0 / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.143, allocations: 0 / 0.5626 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003228/0.1433, allocations: 187.5 kB / 0.5628 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.449e-05/0.1434, allocations: 89 kB / 0.5629 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.1434, allocations: 3.938 kB / 0.5629 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.512e-05/0.1435, allocations: 7.984 kB / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.1436, allocations: 4 kB / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.1436, allocations: 0 / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.923e-05/0.1437, allocations: 119.2 kB / 0.563 GB, free: 14.13 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1437, allocations: 0 / 0.563 GB, free: 14.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.1439, allocations: 27.95 kB / 0.563 GB, free: 14.1 MB / 430.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.0007502/0.1447, allocations: 0.7239 MB / 0.5637 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.1449, allocations: 71.89 kB / 0.5638 GB, free: 13.28 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.145, allocations: 0 / 0.5638 GB, free: 13.28 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.1451, allocations: 27.98 kB / 0.5638 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.1453, allocations: 0 / 0.5638 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.1477, allocations: 1.663 MB / 0.5654 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.1481, allocations: 0.7002 MB / 0.5661 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.184e-05/0.1482, allocations: 12.66 kB / 0.5661 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.497e-05/0.1483, allocations: 35.44 kB / 0.5662 GB, free: 10.72 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1483, allocations: 0 / 0.5662 GB, free: 10.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01772/0.166, allocations: 2.207 MB / 0.5683 GB, free: 8.594 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.513, allocations: 12.97 kB / 0.5683 GB, free: 8.586 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 11.591850830009207]