Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 107.6 kB / 17.98 MB, free: 5.176 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.001318/0.001318, allocations: 193.3 kB / 18.9 MB, free: 4.258 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.3/1.3, allocations: 222.9 MB / 242.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.18 MB / 336.9 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 66.39 kB / 408.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.1007, allocations: 60.82 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001842/0.1026, allocations: 0.545 MB / 469.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.1046, allocations: 1.251 MB / 471.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.1046, allocations: 0 / 471.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.1046, allocations: 0 / 471.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001704/0.1048, allocations: 12 kB / 471.2 MB, free: 12.92 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.1059, allocations: 215 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.082e-05/0.106, allocations: 11.83 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.106, allocations: 0 / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.999e-05/0.106, allocations: 7.938 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.92e-05/0.1061, allocations: 7.984 kB / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.204e-06/0.1061, allocations: 0 / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.1092, allocations: 0.651 MB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.1092, allocations: 0 / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.248e-05/0.1092, allocations: 3.938 kB / 472.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.1095, allocations: 123.8 kB / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1095, allocations: 0 / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1095, allocations: 0 / 472.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.1095, allocations: 0 / 472.2 MB, free: 12.04 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004258/0.1099, allocations: 389.4 kB / 472.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.11, allocations: 8.031 kB / 472.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.877e-05/0.11, allocations: 0.9375 kB / 472.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.1102, allocations: 164.4 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1102, allocations: 4.375 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.1102, allocations: 4.312 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.914e-05/0.1103, allocations: 29.83 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1103, allocations: 4 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.1104, allocations: 4 kB / 472.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1104, allocations: 0 / 472.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.1104, allocations: 0 / 472.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001827/0.1106, allocations: 157.7 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.355e-05/0.1106, allocations: 18.52 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.597e-05/0.1107, allocations: 8.797 kB / 473 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-06/0.1107, allocations: 4.062 kB / 473 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.949e-05/0.1107, allocations: 64.2 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1108, allocations: 0 / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001782/0.1109, allocations: 71.3 kB / 473.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.111, allocations: 77.11 kB / 473.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.537e-05/0.1111, allocations: 93.86 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1111, allocations: 25.7 kB / 473.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.379e-05/0.1111, allocations: 84.14 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.1112, allocations: 4.25 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.1112, allocations: 17.7 kB / 473.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1113, allocations: 314.8 kB / 473.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.1113, allocations: 7.938 kB / 473.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.793e-06/0.1114, allocations: 0 / 473.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.429e-05/0.1114, allocations: 64.27 kB / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1114, allocations: 0 / 473.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.219e-05/0.1115, allocations: 67.33 kB / 473.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.336e-05/0.1116, allocations: 33.8 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1116, allocations: 0 / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1116, allocations: 4 kB / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1116, allocations: 0 / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1116, allocations: 0 / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.1116, allocations: 0 / 473.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1117, allocations: 0 / 473.9 MB, free: 10.07 MB / 350.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.902e-05/0.1117, allocations: 139.5 kB / 474 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.1118, allocations: 3.938 kB / 474 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.1118, allocations: 19.06 kB / 474 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1118, allocations: 3.984 kB / 474 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1118, allocations: 0 / 474 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-06/0.1118, allocations: 4 kB / 474 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.1119, allocations: 141.7 kB / 474.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.1119, allocations: 0 / 474.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-06/0.1119, allocations: 7.922 kB / 474.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.112, allocations: 0 / 474.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.112, allocations: 4 kB / 474.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.112, allocations: 0 / 474.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.112, allocations: 0 / 474.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.1121, allocations: 94.83 kB / 474.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.706e-05/0.1121, allocations: 81.05 kB / 474.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.1122, allocations: 0 / 474.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.1122, allocations: 4 kB / 474.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.1122, allocations: 7.922 kB / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.1122, allocations: 3.938 kB / 474.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.513e-05/0.1123, allocations: 79.31 kB / 474.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1123, allocations: 4 kB / 474.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.1126, allocations: 67.92 kB / 474.5 MB, free: 9.312 MB / 350.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.0007435/0.1133, allocations: 340.9 kB / 474.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001148/0.1135, allocations: 63.39 kB / 474.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1135, allocations: 0 / 474.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.722e-05/0.1135, allocations: 59.47 kB / 475 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.1137, allocations: 4 kB / 475 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002319/0.1139, allocations: 118.5 kB / 475.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1142, allocations: 0.6729 MB / 475.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.329e-05/0.1142, allocations: 11.44 kB / 475.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1142, allocations: 0 / 475.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Templates: time 0.003865/0.1181, allocations: 1.68 MB / 477.5 MB, free: 6.371 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches