Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 90 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 178.5 kB / 18.26 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.3 MB / 242.3 MB, free: 80 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2052/0.2052, allocations: 44.25 MB / 337.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003235, allocations: 9.188 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1238, allocations: 61.92 MB / 472.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002804/0.1267, allocations: 2.325 MB / 474.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1277, allocations: 0.744 MB / 475.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.1279, allocations: 4 kB / 475.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1281, allocations: 51.62 kB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.1283, allocations: 83.44 kB / 475.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.1285, allocations: 87.91 kB / 475.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003697/0.1289, allocations: 398.5 kB / 475.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.1291, allocations: 132.4 kB / 476.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.1293, allocations: 135.4 kB / 476.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.1295, allocations: 147.2 kB / 476.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.1296, allocations: 16 kB / 476.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.97e-05/0.1296, allocations: 20 kB / 476.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.431e-05/0.1297, allocations: 59.7 kB / 476.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1298, allocations: 192.8 kB / 476.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.1302, allocations: 390.4 kB / 477 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1302, allocations: 0 / 477 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1302, allocations: 0 / 477 MB, free: 8.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1302, allocations: 0 / 477 MB, free: 8.566 MB / 350.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.0009274/0.1311, allocations: 0.6185 MB / 477.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1312, allocations: 8.031 kB / 477.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.638e-05/0.1312, allocations: 40.47 kB / 477.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.1315, allocations: 272.7 kB / 477.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.1315, allocations: 29.31 kB / 478 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/0.1316, allocations: 36.38 kB / 478 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006308/0.1322, allocations: 374.2 kB / 478.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1322, allocations: 0 / 478.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.1323, allocations: 20 kB / 478.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1323, allocations: 8 kB / 478.4 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006086/0.1329, allocations: 283.8 kB / 478.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.1347, allocations: 1.373 MB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.1352, allocations: 206.6 kB / 480.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.1355, allocations: 91.52 kB / 480.3 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.1355, allocations: 4 kB / 480.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1356, allocations: 38.5 kB / 480.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.1356, allocations: 0 / 480.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007816/0.1364, allocations: 285.2 kB / 480.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.1364, allocations: 136.5 kB / 480.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.1367, allocations: 320.5 kB / 481.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.1368, allocations: 29.7 kB / 481.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1369, allocations: 243.6 kB / 481.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.1369, allocations: 55.28 kB / 481.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.137, allocations: 29.7 kB / 481.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1371, allocations: 338.8 kB / 481.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.1373, allocations: 92.5 kB / 481.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.1376, allocations: 184.2 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004996/0.1381, allocations: 270.9 kB / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1381, allocations: 0 / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006595/0.1388, allocations: 328.9 kB / 482.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1388, allocations: 8.25 kB / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1389, allocations: 4 kB / 482.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.1389, allocations: 11.98 kB / 482.7 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.1393, allocations: 99.88 kB / 482.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.098e-06/0.1393, allocations: 4 kB / 482.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.1396, allocations: 55.56 kB / 482.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1396, allocations: 12 kB / 482.8 MB, free: 2.32 MB / 350.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.0001316/0.1397, allocations: 149.7 kB / 483 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-05/0.1398, allocations: 31.62 kB / 483 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.403e-05/0.1399, allocations: 34.41 kB / 483 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1399, allocations: 4 kB / 483 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.1399, allocations: 7.984 kB / 483.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1399, allocations: 3.938 kB / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007315/0.1407, allocations: 0.5842 MB / 483.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1407, allocations: 3.938 kB / 483.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.141, allocations: 76.09 kB / 483.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.141, allocations: 3.938 kB / 483.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.141, allocations: 11.94 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.141, allocations: 4 kB / 483.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.141, allocations: 0 / 483.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005544/0.1416, allocations: 418.5 kB / 484.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.819e-05/0.1417, allocations: 112.7 kB / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.1417, allocations: 11.94 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.1419, allocations: 23.97 kB / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.142, allocations: 19.92 kB / 484.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.142, allocations: 4 kB / 484.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.1422, allocations: 227.1 kB / 484.5 MB, free: 492 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1422, allocations: 4 kB / 484.5 MB, free: 488 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.1426, allocations: 67.84 kB / 484.6 MB, free: 420 kB / 350.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 8.586e-05/0.1427, allocations: 95.78 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005141/0.1432, allocations: 212.1 kB / 484.9 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1432, allocations: 4 kB / 484.9 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.1435, allocations: 92.64 kB / 485 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.144, allocations: 29.58 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009428/0.1449, allocations: 0.7016 MB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1453, allocations: 0.7755 MB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.1454, allocations: 29.97 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.1455, allocations: 19.42 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1455, allocations: 0 / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of Templates: time 0.004231/0.1497, allocations: 1.607 MB / 488.2 MB, free: 12.77 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches