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.0008334/0.0008335, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.0008686/0.0008687, allocations: 176.9 kB / 18.91 MB, free: 4.871 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.341/1.341, allocations: 223.3 MB / 243 MB, free: 212 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.201/0.201, allocations: 44.26 MB / 338.3 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002981, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1063, allocations: 61.92 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006117/0.1069, allocations: 215 kB / 473.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.1089, allocations: 1.263 MB / 474.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.404e-05/0.109, allocations: 0 / 474.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.23e-05/0.109, allocations: 0 / 474.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.1091, allocations: 4 kB / 474.4 MB, free: 11.86 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.0009578/0.1101, allocations: 198.3 kB / 474.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.451e-05/0.1101, allocations: 15.88 kB / 474.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.515e-05/0.1102, allocations: 0 / 474.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.158e-05/0.1102, allocations: 4 kB / 474.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.418e-05/0.1103, allocations: 8 kB / 474.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.223e-06/0.1103, allocations: 0 / 474.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.1133, allocations: 0.6169 MB / 475.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.197e-06/0.1133, allocations: 0 / 475.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.1134, allocations: 29.64 kB / 475.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.1136, allocations: 115.8 kB / 475.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1136, allocations: 0 / 475.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1136, allocations: 0 / 475.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1136, allocations: 4 kB / 475.4 MB, free: 10.98 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.0003614/0.114, allocations: 385.5 kB / 475.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.114, allocations: 16.03 kB / 475.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.1141, allocations: 0.9375 kB / 475.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.1142, allocations: 164.3 kB / 475.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1142, allocations: 384 / 475.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.1142, allocations: 384 / 475.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.969e-05/0.1143, allocations: 41.81 kB / 476 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.1143, allocations: 0 / 476 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.1143, allocations: 4 kB / 476 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1143, allocations: 0 / 476 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.863e-05/0.1144, allocations: 11.98 kB / 476 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.1145, allocations: 141.7 kB / 476.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.895e-05/0.1145, allocations: 26.53 kB / 476.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.406e-05/0.1146, allocations: 8.859 kB / 476.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-06/0.1146, allocations: 0 / 476.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.1146, allocations: 60.27 kB / 476.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1146, allocations: 4 kB / 476.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.1148, allocations: 63.41 kB / 476.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.1148, allocations: 81.09 kB / 476.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.634e-05/0.1149, allocations: 101.8 kB / 476.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.1149, allocations: 25.7 kB / 476.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.022e-05/0.115, allocations: 80.14 kB / 476.6 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.115, allocations: 3.938 kB / 476.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.115, allocations: 9.719 kB / 476.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1151, allocations: 319.1 kB / 476.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.089e-05/0.1151, allocations: 0 / 476.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-06/0.1152, allocations: 3.938 kB / 476.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.489e-05/0.1152, allocations: 68.25 kB / 476.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1152, allocations: 0 / 476.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.901e-05/0.1153, allocations: 63.34 kB / 477 MB, free: 9.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1153, allocations: 37.64 kB / 477 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1153, allocations: 0 / 477 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1154, allocations: 96 / 477 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.174e-06/0.1154, allocations: 7.984 kB / 477.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1154, allocations: 3.938 kB / 477.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.1154, allocations: 0 / 477.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1154, allocations: 0 / 477.1 MB, free: 9.008 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.62e-05/0.1155, allocations: 139.5 kB / 477.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.1155, allocations: 3.938 kB / 477.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.124e-05/0.1155, allocations: 7.078 kB / 477.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1155, allocations: 4 kB / 477.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1155, allocations: 0 / 477.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1156, allocations: 4 kB / 477.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.385e-05/0.1156, allocations: 145.7 kB / 477.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1157, allocations: 0 / 477.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-06/0.1157, allocations: 3.938 kB / 477.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1157, allocations: 4 kB / 477.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.1157, allocations: 0 / 477.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1157, allocations: 0 / 477.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1157, allocations: 0 / 477.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.743e-05/0.1158, allocations: 94.83 kB / 477.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.1158, allocations: 81.05 kB / 477.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.1159, allocations: 4 kB / 477.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.1159, allocations: 0 / 477.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/0.1159, allocations: 7.922 kB / 477.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.1159, allocations: 0 / 477.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.199e-05/0.1159, allocations: 83.28 kB / 477.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1159, allocations: 0 / 477.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.1163, allocations: 59.98 kB / 477.7 MB, free: 8.27 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.00064/0.1169, allocations: 348.2 kB / 478 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.307e-05/0.117, allocations: 55.41 kB / 478.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.117, allocations: 0 / 478.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.205e-05/0.117, allocations: 59.39 kB / 478.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.1172, allocations: 7.938 kB / 478.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001972/0.1174, allocations: 120.5 kB / 478.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1176, allocations: 0.6692 MB / 478.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.328e-05/0.1176, allocations: 7.438 kB / 478.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.1177, allocations: 7.938 kB / 478.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of Templates: time 0.003618/0.1213, allocations: 1.674 MB / 480.6 MB, free: 5.32 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