Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.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 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 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 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 96.47 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 180.7 kB / 16.92 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 223.1 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4178/0.4178, allocations: 43.57 MB / 315 MB, free: 8.824 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005292/0.0005293, allocations: 16 kB / 384.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1349, allocations: 58.86 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.000651/0.1356, allocations: 220.4 kB / 443.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006135/0.1362, allocations: 242.7 kB / 443.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.117e-05/0.1362, allocations: 0 / 443.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.1362, allocations: 0 / 443.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.89e-06/0.1363, allocations: 0 / 443.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.1365, allocations: 55.88 kB / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.924e-05/0.1366, allocations: 0 / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.696e-05/0.1366, allocations: 0 / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.725e-05/0.1367, allocations: 0 / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.748e-05/0.1367, allocations: 4 kB / 443.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.165e-05/0.1367, allocations: 4 kB / 443.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.1368, allocations: 55.95 kB / 444 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.1369, allocations: 0 / 444 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.1369, allocations: 29.7 kB / 444 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.137, allocations: 59.8 kB / 444.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1371, allocations: 4 kB / 444.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1371, allocations: 4 kB / 444.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.1371, allocations: 0 / 444.1 MB, free: 12.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003115/0.1374, allocations: 349.3 kB / 444.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1374, allocations: 8.031 kB / 444.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.484e-05/0.1375, allocations: 4.938 kB / 444.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.409e-05/0.1376, allocations: 164.3 kB / 444.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1376, allocations: 384 / 444.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.1376, allocations: 384 / 444.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.55e-05/0.1377, allocations: 38.25 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.1377, allocations: 192 / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1377, allocations: 3.938 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.1377, allocations: 3.938 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.735e-05/0.1378, allocations: 4 kB / 444.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000131/0.1379, allocations: 149.7 kB / 444.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.547e-05/0.1379, allocations: 18.52 kB / 444.8 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.138, allocations: 8.844 kB / 444.8 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.138, allocations: 4 kB / 444.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.138, allocations: 60.33 kB / 444.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.138, allocations: 0 / 444.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1382, allocations: 71.25 kB / 445 MB, free: 10.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.1383, allocations: 77.11 kB / 445 MB, free: 10.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.96e-05/0.1383, allocations: 97.78 kB / 445.1 MB, free: 10.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.1383, allocations: 25.7 kB / 445.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.675e-05/0.1384, allocations: 80.27 kB / 445.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.1385, allocations: 4 kB / 445.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.09e-05/0.1385, allocations: 13.72 kB / 445.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1386, allocations: 314.8 kB / 445.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.695e-06/0.1386, allocations: 0 / 445.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.088e-06/0.1386, allocations: 0 / 445.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.776e-05/0.1387, allocations: 60.27 kB / 445.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1387, allocations: 0 / 445.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.851e-05/0.1388, allocations: 63.48 kB / 445.7 MB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.1388, allocations: 33.7 kB / 445.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1388, allocations: 0 / 445.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1388, allocations: 3.938 kB / 445.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.447e-06/0.1388, allocations: 11.92 kB / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1388, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.803e-05/0.1389, allocations: 4 kB / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.1389, allocations: 0 / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.815e-05/0.139, allocations: 139.5 kB / 445.9 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-06/0.139, allocations: 3.938 kB / 445.9 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.155e-05/0.139, allocations: 11.06 kB / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.139, allocations: 0 / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.139, allocations: 0 / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.139, allocations: 0 / 445.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.075e-05/0.1391, allocations: 146 kB / 446 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1391, allocations: 0 / 446 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-06/0.1391, allocations: 7.922 kB / 446 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-06/0.1391, allocations: 0 / 446 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1392, allocations: 3.938 kB / 446 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1392, allocations: 0 / 446 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1392, allocations: 4 kB / 446.1 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.961e-05/0.1393, allocations: 90.83 kB / 446.1 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.823e-05/0.1393, allocations: 81.05 kB / 446.2 MB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1393, allocations: 7.938 kB / 446.2 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.1393, allocations: 0 / 446.2 MB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.519e-05/0.1394, allocations: 4 kB / 446.2 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.1394, allocations: 0 / 446.2 MB, free: 9.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.304e-05/0.1394, allocations: 79.31 kB / 446.3 MB, free: 9.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1394, allocations: 0 / 446.3 MB, free: 9.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1396, allocations: 23.98 kB / 446.3 MB, free: 9.398 MB / 382.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004865/0.1401, allocations: 279.4 kB / 446.6 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.088e-05/0.1402, allocations: 59.41 kB / 446.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1402, allocations: 0 / 446.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.528e-05/0.1403, allocations: 55.41 kB / 446.7 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1404, allocations: 0 / 446.7 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001709/0.1406, allocations: 86.69 kB / 446.8 MB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.1408, allocations: 0.6731 MB / 447.5 MB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.811e-06/0.1408, allocations: 0 / 447.5 MB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.416e-06/0.1408, allocations: 11.44 kB / 447.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1408, allocations: 0 / 447.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of Templates: time 0.003145/0.144, allocations: 0.7893 MB / 448.3 MB, free: 7.398 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches