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.0011/0.0011, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001171/0.001171, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.361/1.361, allocations: 222.9 MB / 242.9 MB, free: 15.17 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.2035/0.2035, allocations: 44.17 MB / 337.2 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 65.05 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1003, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001859/0.1022, allocations: 483.8 kB / 470.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1043, allocations: 1.263 MB / 471.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.201e-05/0.1044, allocations: 0 / 471.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.031e-05/0.1044, allocations: 0 / 471.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.1046, allocations: 11.94 kB / 471.7 MB, free: 12.62 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.00116/0.1058, allocations: 249.9 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.673e-05/0.1058, allocations: 11.94 kB / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.293e-05/0.1059, allocations: 4 kB / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.603e-05/0.1059, allocations: 0 / 471.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.455e-05/0.106, allocations: 11.98 kB / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.106, allocations: 0 / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00314/0.1091, allocations: 0.6584 MB / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-06/0.1091, allocations: 0 / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.1092, allocations: 3.938 kB / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.1095, allocations: 175.7 kB / 472.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1095, allocations: 0 / 472.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1095, allocations: 4 kB / 472.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1095, allocations: 3.938 kB / 472.8 MB, free: 11.64 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.0003754/0.1099, allocations: 384.4 kB / 473.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.1099, allocations: 8.031 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.432e-05/0.11, allocations: 4.938 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.1101, allocations: 168.4 kB / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.1101, allocations: 384 / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.1101, allocations: 384 / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.576e-05/0.1102, allocations: 37.83 kB / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.1102, allocations: 3.938 kB / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.1102, allocations: 0 / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1102, allocations: 0 / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.591e-05/0.1102, allocations: 0 / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.1104, allocations: 153.7 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.813e-05/0.1104, allocations: 18.52 kB / 473.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.1105, allocations: 12.95 kB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-06/0.1105, allocations: 0 / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.1105, allocations: 60.2 kB / 473.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.524e-06/0.1105, allocations: 0 / 473.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.1107, allocations: 71.23 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.1107, allocations: 89.17 kB / 473.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.428e-05/0.1108, allocations: 93.86 kB / 473.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.1108, allocations: 25.7 kB / 473.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.678e-05/0.1109, allocations: 84.14 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.1109, allocations: 0 / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.1109, allocations: 13.7 kB / 474 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.563e-05/0.111, allocations: 314.8 kB / 474.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.111, allocations: 12.12 kB / 474.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.745e-06/0.1111, allocations: 0 / 474.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.732e-05/0.1111, allocations: 60.27 kB / 474.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1111, allocations: 0 / 474.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.579e-05/0.1112, allocations: 71.27 kB / 474.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.1112, allocations: 33.7 kB / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.1112, allocations: 0 / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1113, allocations: 0 / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1113, allocations: 0 / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1113, allocations: 4.094 kB / 474.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.1113, allocations: 0 / 474.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1113, allocations: 0 / 474.5 MB, free: 9.68 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.088e-05/0.1114, allocations: 139.5 kB / 474.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.1114, allocations: 7.922 kB / 474.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.214e-05/0.1114, allocations: 7.078 kB / 474.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1114, allocations: 4 kB / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1114, allocations: 0 / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1114, allocations: 0 / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.756e-05/0.1115, allocations: 149.7 kB / 474.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1115, allocations: 0 / 474.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-06/0.1115, allocations: 3.938 kB / 474.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1116, allocations: 4 kB / 474.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.1116, allocations: 0 / 474.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1116, allocations: 0 / 474.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1116, allocations: 3.938 kB / 474.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.641e-05/0.1117, allocations: 94.8 kB / 474.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.192e-05/0.1117, allocations: 85.08 kB / 475 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.1117, allocations: 4 kB / 475 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.518e-06/0.1118, allocations: 3.938 kB / 475 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.1118, allocations: 4 kB / 475 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.1118, allocations: 0 / 475 MB, free: 9.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.967e-05/0.1118, allocations: 79.28 kB / 475 MB, free: 8.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1118, allocations: 0 / 475 MB, free: 8.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1121, allocations: 63.98 kB / 475.1 MB, free: 8.93 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.000654/0.1128, allocations: 352 kB / 475.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.826e-05/0.1129, allocations: 59.39 kB / 475.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1129, allocations: 0 / 475.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.566e-05/0.113, allocations: 55.41 kB / 475.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1131, allocations: 10.95 kB / 475.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/0.1134, allocations: 122.5 kB / 475.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.1136, allocations: 0.6768 MB / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.493e-05/0.1137, allocations: 7.438 kB / 476.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1137, allocations: 0 / 476.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of Templates: time 0.003814/0.1175, allocations: 1.662 MB / 478 MB, free: 5.984 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