Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.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_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") translateModel(ModelicaTest.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_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001562/0.001561, allocations: 180.3 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007524/0.0007524, allocations: 86.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4349/0.4349, allocations: 43.56 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003818/0.0003819, allocations: 8 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1411, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.002603/0.1438, allocations: 2.193 MB / 492.4 MB, free: 9.023 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1449, allocations: 0.7411 MB / 493.2 MB, free: 8.273 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.145, allocations: 8 kB / 493.2 MB, free: 8.266 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1452, allocations: 43.64 kB / 493.2 MB, free: 8.223 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1454, allocations: 87.42 kB / 493.3 MB, free: 8.137 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.1456, allocations: 83.91 kB / 493.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003561/0.146, allocations: 378.5 kB / 493.8 MB, free: 7.684 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.1462, allocations: 115.2 kB / 493.9 MB, free: 7.566 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1464, allocations: 123.5 kB / 494 MB, free: 7.445 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.1466, allocations: 143.3 kB / 494.1 MB, free: 7.305 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.1466, allocations: 20 kB / 494.2 MB, free: 7.285 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.352e-05/0.1467, allocations: 20 kB / 494.2 MB, free: 7.266 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.1468, allocations: 59.7 kB / 494.2 MB, free: 7.207 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.899e-05/0.1468, allocations: 85.52 kB / 494.3 MB, free: 7.117 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.1471, allocations: 311.3 kB / 494.6 MB, free: 6.812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1471, allocations: 0 / 494.6 MB, free: 6.812 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1471, allocations: 0 / 494.6 MB, free: 6.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1471, allocations: 0 / 494.6 MB, free: 6.812 MB / 378.7 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.0009502/0.1481, allocations: 0.6161 MB / 495.2 MB, free: 6.145 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1481, allocations: 8.031 kB / 495.2 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1483, allocations: 51.38 kB / 495.3 MB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.1487, allocations: 267.3 kB / 495.6 MB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.822e-05/0.1487, allocations: 25 kB / 495.6 MB, free: 5.758 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.1488, allocations: 32 kB / 495.6 MB, free: 5.727 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008784/0.1497, allocations: 374.6 kB / 496 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1497, allocations: 0 / 496 MB, free: 5.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.1497, allocations: 11.95 kB / 496 MB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1498, allocations: 12 kB / 496 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008784/0.1507, allocations: 296.8 kB / 496.3 MB, free: 5.027 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.1535, allocations: 1.352 MB / 497.6 MB, free: 3.582 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006887/0.1542, allocations: 210.4 kB / 497.8 MB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.1546, allocations: 95.56 kB / 497.9 MB, free: 3.234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.1546, allocations: 3.984 kB / 497.9 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.1547, allocations: 46.5 kB / 498 MB, free: 3.176 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.1547, allocations: 0 / 498 MB, free: 3.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.001115/0.1558, allocations: 277.2 kB / 498.3 MB, free: 2.898 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.1559, allocations: 132.5 kB / 498.4 MB, free: 2.738 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.1564, allocations: 332.4 kB / 498.7 MB, free: 2.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.1565, allocations: 29.7 kB / 498.7 MB, free: 2.375 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.1567, allocations: 231.7 kB / 499 MB, free: 2.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.61e-05/0.1568, allocations: 59.19 kB / 499 MB, free: 2.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.1568, allocations: 4 kB / 499 MB, free: 2.082 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.157, allocations: 342.8 kB / 499.4 MB, free: 1.738 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.1573, allocations: 92.5 kB / 499.5 MB, free: 1.648 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004286/0.1577, allocations: 172.2 kB / 499.6 MB, free: 1.441 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.1581, allocations: 108.4 kB / 499.7 MB, free: 1.336 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.1582, allocations: 4 kB / 499.7 MB, free: 1.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009725/0.1591, allocations: 333.1 kB / 0.4883 GB, free: 1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.1592, allocations: 4 kB / 0.4883 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.1592, allocations: 4.281 kB / 0.4883 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.1592, allocations: 7.938 kB / 0.4884 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006006/0.1599, allocations: 111.9 kB / 0.4885 GB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.268e-05/0.1599, allocations: 4 kB / 0.4885 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004524/0.1604, allocations: 47.58 kB / 0.4885 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.1604, allocations: 12 kB / 0.4885 GB, free: 0.8125 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002704/0.1607, allocations: 157.6 kB / 0.4887 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.1609, allocations: 35.7 kB / 0.4887 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.161, allocations: 34.41 kB / 0.4887 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.161, allocations: 4 kB / 0.4887 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.161, allocations: 3.938 kB / 0.4887 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.161, allocations: 0 / 0.4887 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2385/0.3996, allocations: 0.5858 MB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3996, allocations: 3.156 kB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.4, allocations: 73.09 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.4, allocations: 3.281 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.4001, allocations: 4.344 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/0.4001, allocations: 8.625 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4001, allocations: 1.312 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005767/0.4007, allocations: 414.5 kB / 0.4898 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.268e-05/0.4008, allocations: 110.3 kB / 0.4899 GB, free: 42.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.4008, allocations: 6.031 kB / 0.4899 GB, free: 42.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.4011, allocations: 21.3 kB / 0.4899 GB, free: 42.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.4012, allocations: 23.36 kB / 0.49 GB, free: 42.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.4012, allocations: 5.875 kB / 0.49 GB, free: 42.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002699/0.4015, allocations: 227.8 kB / 0.4902 GB, free: 42.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4015, allocations: 0 / 0.4902 GB, free: 42.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004232/0.4019, allocations: 72.28 kB / 0.4902 GB, free: 42.36 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001015/0.402, allocations: 97.59 kB / 0.4903 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006265/0.4027, allocations: 214.6 kB / 0.4905 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4027, allocations: 1.062 kB / 0.4905 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.4029, allocations: 95.92 kB / 0.4906 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.4034, allocations: 21.47 kB / 0.4907 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009221/0.4043, allocations: 0.6893 MB / 0.4913 GB, free: 41.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.4045, allocations: 0.7733 MB / 0.4921 GB, free: 41.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.637e-05/0.4046, allocations: 21.62 kB / 0.4921 GB, free: 41.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4046, allocations: 0 / 0.4921 GB, free: 41.14 MB / 378.7 MB Notification: Performance of Templates: time 0.005282/0.4099, allocations: 3.081 MB / 0.4951 GB, free: 40.93 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches