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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001966/0.001966, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002434/0.002434, allocations: 157.7 kB / 24.27 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3693/0.3693, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.881e-06, allocations: 4 kB / 375.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.738e-05/4.326e-05, allocations: 5.688 kB / 375.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0015/0.001544, allocations: 488.9 kB / 375.7 MB, free: 4.523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.003967, allocations: 1.372 MB / 377.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.071e-05/0.003998, allocations: 0 / 377.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.004015, allocations: 0 / 377.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.004226, allocations: 7.984 kB / 377.1 MB, free: 3.137 MB / 346.7 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.001209/0.005435, allocations: 269.7 kB / 377.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.729e-05/0.005492, allocations: 11.98 kB / 377.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.049e-05/0.005523, allocations: 0 / 377.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.255e-05/0.005555, allocations: 0 / 377.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.842e-05/0.005624, allocations: 11.36 kB / 377.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.005634, allocations: 0 / 377.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00496/0.01059, allocations: 1.001 MB / 378.4 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.904e-06/0.0106, allocations: 0 / 378.4 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.01063, allocations: 4 kB / 378.4 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.01103, allocations: 219.4 kB / 378.6 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.01103, allocations: 0 / 378.6 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01103, allocations: 0 / 378.6 MB, free: 1.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.01104, allocations: 4 kB / 378.6 MB, free: 1.879 MB / 346.7 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.0004587/0.0115, allocations: 303.7 kB / 378.9 MB, free: 1.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.01154, allocations: 12.02 kB / 378.9 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/0.01158, allocations: 4.938 kB / 378.9 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.01171, allocations: 105.8 kB / 379 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.01172, allocations: 384 / 379 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.01173, allocations: 4.375 kB / 379 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.01184, allocations: 55.97 kB / 379.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.01185, allocations: 4.125 kB / 379.1 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.01187, allocations: 4.125 kB / 379.1 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.01188, allocations: 4 kB / 379.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.452e-05/0.01192, allocations: 29.64 kB / 379.1 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.01207, allocations: 105.3 kB / 379.2 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.301e-05/0.01214, allocations: 40.28 kB / 379.3 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.115e-05/0.01218, allocations: 34.66 kB / 379.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.01219, allocations: 0 / 379.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.361e-05/0.01226, allocations: 60.27 kB / 379.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.01226, allocations: 4 kB / 379.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002669/0.01252, allocations: 122.7 kB / 379.5 MB, free: 0.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.0126, allocations: 81.05 kB / 379.6 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.01271, allocations: 101.8 kB / 379.7 MB, free: 0.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.01273, allocations: 25.7 kB / 379.7 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.01278, allocations: 80.14 kB / 379.8 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.01281, allocations: 4 kB / 379.8 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.01284, allocations: 9.719 kB / 379.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.01302, allocations: 310.8 kB / 380.1 MB, free: 184 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.738e-05/0.01306, allocations: 33.95 kB / 380.1 MB, free: 144 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.279e-05/0.01308, allocations: 29.7 kB / 380.1 MB, free: 108 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.822e-05/0.01315, allocations: 64.25 kB / 380.2 MB, free: 28 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01315, allocations: 0 / 380.2 MB, free: 28 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001368/0.01329, allocations: 97.05 kB / 380.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.298e-05/0.01333, allocations: 29.7 kB / 380.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.01333, allocations: 0 / 380.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.01335, allocations: 0 / 380.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.911e-06/0.01336, allocations: 7.922 kB / 380.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.01336, allocations: 0 / 380.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.01338, allocations: 8.094 kB / 380.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.01339, allocations: 0 / 380.3 MB, free: 15.86 MB / 362.7 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 0.0001232/0.01351, allocations: 135.5 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.01353, allocations: 4 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.029e-05/0.01354, allocations: 3.156 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.01354, allocations: 4 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.01355, allocations: 3.938 kB / 380.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.01355, allocations: 0 / 380.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.01366, allocations: 105.2 kB / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.01366, allocations: 0 / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.01366, allocations: 4 kB / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.01366, allocations: 0 / 380.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.01368, allocations: 4 kB / 380.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.01368, allocations: 0 / 380.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.01369, allocations: 3.984 kB / 380.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001786/0.01386, allocations: 128.4 kB / 380.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-06/0.01387, allocations: 8 kB / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.01389, allocations: 0 / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.627e-06/0.01389, allocations: 0 / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.01391, allocations: 3.938 kB / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.01392, allocations: 4 kB / 380.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.352e-05/0.01397, allocations: 83.3 kB / 380.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01397, allocations: 0 / 380.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003144/0.01429, allocations: 63.8 kB / 380.9 MB, free: 15.24 MB / 362.7 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.001016/0.0153, allocations: 362.1 kB / 381.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001551/0.01546, allocations: 114.8 kB / 381.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.01546, allocations: 3.938 kB / 381.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.453e-05/0.01553, allocations: 85.09 kB / 381.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.01569, allocations: 4 kB / 381.4 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002519/0.01594, allocations: 122.5 kB / 381.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.341e-05/0.01602, allocations: 59.34 kB / 381.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.01602, allocations: 0 / 381.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.01604, allocations: 8.5 kB / 381.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01604, allocations: 0 / 381.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of Templates: time 0.005346/0.02138, allocations: 1.645 MB / 383.3 MB, free: 12.84 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.841331594041549]