Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 101.7 kB / 16.27 MB, free: 6.398 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.002174/0.002175, allocations: 189.2 kB / 17.2 MB, free: 5.953 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.697/1.697, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2192/0.2192, allocations: 43.53 MB / 313.9 MB, free: 0.5273 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.001457/0.001457, allocations: 62.62 kB / 382.7 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 57.79 MB / 440.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001755/0.1079, allocations: 489.5 kB / 441 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1094, allocations: 1.269 MB / 442.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.451e-05/0.1095, allocations: 0 / 442.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.1095, allocations: 0 / 442.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1097, allocations: 7.938 kB / 442.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009353/0.1106, allocations: 260 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.406e-05/0.1107, allocations: 4 kB / 442.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.385e-05/0.1107, allocations: 0 / 442.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.1107, allocations: 7.984 kB / 442.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.19e-05/0.1108, allocations: 11.94 kB / 442.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.1108, allocations: 0 / 442.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002618/0.1134, allocations: 0.6599 MB / 443.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.1135, allocations: 0 / 443.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.372e-05/0.1135, allocations: 7.984 kB / 443.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002094/0.1137, allocations: 175.7 kB / 443.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1137, allocations: 0 / 443.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1137, allocations: 0 / 443.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1137, allocations: 0 / 443.4 MB, free: 4.129 MB / 318.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.0003085/0.114, allocations: 389.1 kB / 443.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.1141, allocations: 11.89 kB / 443.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.1141, allocations: 8.922 kB / 443.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.179e-05/0.1142, allocations: 160.4 kB / 443.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1142, allocations: 384 / 443.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.1142, allocations: 384 / 443.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.826e-05/0.1143, allocations: 37.77 kB / 444 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1143, allocations: 0 / 444 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1143, allocations: 0 / 444 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.1143, allocations: 0 / 444 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.474e-05/0.1143, allocations: 8 kB / 444 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.803e-05/0.1144, allocations: 149.7 kB / 444.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.87e-05/0.1145, allocations: 18.61 kB / 444.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.145e-05/0.1145, allocations: 4.859 kB / 444.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.1145, allocations: 0 / 444.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.1145, allocations: 64.14 kB / 444.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.323e-06/0.1145, allocations: 7.984 kB / 444.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001372/0.1147, allocations: 71.45 kB / 444.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.1147, allocations: 77.11 kB / 444.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.787e-05/0.1148, allocations: 93.86 kB / 444.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.715e-06/0.1148, allocations: 25.7 kB / 444.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.52e-05/0.1148, allocations: 84.12 kB / 444.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.1148, allocations: 11.89 kB / 444.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.22e-05/0.1149, allocations: 13.97 kB / 444.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.928e-05/0.1149, allocations: 314.8 kB / 444.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.1149, allocations: 0 / 444.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.1149, allocations: 3.938 kB / 444.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.79e-05/0.115, allocations: 64.2 kB / 445 MB, free: 2.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.115, allocations: 0 / 445 MB, free: 2.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.171e-05/0.115, allocations: 71.33 kB / 445 MB, free: 2.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.1151, allocations: 33.7 kB / 445.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1151, allocations: 96 / 445.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.1151, allocations: 4 kB / 445.1 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.1151, allocations: 4 kB / 445.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1151, allocations: 0 / 445.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/0.1151, allocations: 3.938 kB / 445.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.1151, allocations: 4 kB / 445.1 MB, free: 2.152 MB / 318.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 5.087e-05/0.1152, allocations: 139.5 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-06/0.1152, allocations: 7.938 kB / 445.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.081e-05/0.1152, allocations: 3.125 kB / 445.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1152, allocations: 4 kB / 445.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1152, allocations: 0 / 445.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1152, allocations: 0 / 445.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.429e-05/0.1153, allocations: 157.6 kB / 445.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.1153, allocations: 0 / 445.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.1153, allocations: 3.938 kB / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.72e-07/0.1153, allocations: 0 / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1153, allocations: 0 / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1153, allocations: 0 / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1153, allocations: 0 / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.899e-05/0.1154, allocations: 94.83 kB / 445.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.1154, allocations: 85.05 kB / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.1154, allocations: 0 / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-06/0.1154, allocations: 0 / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.1155, allocations: 0 / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.1155, allocations: 0 / 445.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.817e-05/0.1155, allocations: 79.28 kB / 445.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1155, allocations: 0 / 445.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.1158, allocations: 68.11 kB / 445.7 MB, free: 1.414 MB / 318.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.0005275/0.1163, allocations: 334.7 kB / 446 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.208e-05/0.1164, allocations: 71.33 kB / 446.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1164, allocations: 0 / 446.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.077e-05/0.1165, allocations: 55.41 kB / 446.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1166, allocations: 4 kB / 446.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002/0.1168, allocations: 89 kB / 446.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.117, allocations: 0.669 MB / 446.9 MB, free: 140 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.903e-06/0.117, allocations: 0 / 446.9 MB, free: 140 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.055e-05/0.117, allocations: 11.44 kB / 446.9 MB, free: 128 kB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.117, allocations: 128 / 446.9 MB, free: 128 kB / 318.1 MB Notification: Performance of Templates: time 0.004717/0.1217, allocations: 1.596 MB / 448.5 MB, free: 14.53 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches