Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.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.001378/0.001378, allocations: 71.77 kB / 21.69 MB, free: 2.852 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.001785/0.001785, allocations: 166.7 kB / 24.99 MB, free: 8.789 MB / 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 0.9778/0.9778, allocations: 177.1 MB / 205.3 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.275/0.275, allocations: 34.26 MB / 296 MB, free: 0.7695 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.228e-05/3.414e-05, allocations: 4.281 kB / 378 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001649/0.001683, allocations: 497 kB / 378.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006007/0.002284, allocations: 219.5 kB / 378.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.002311, allocations: 0 / 378.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.002327, allocations: 0 / 378.7 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-06/0.002334, allocations: 3.938 kB / 378.7 MB, free: 2.297 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003337/0.002668, allocations: 51.75 kB / 378.7 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.661e-05/0.002734, allocations: 4 kB / 378.7 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.083e-05/0.002785, allocations: 4 kB / 378.8 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.412e-05/0.002819, allocations: 4 kB / 378.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.712e-05/0.002857, allocations: 0 / 378.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.002867, allocations: 0 / 378.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.003023, allocations: 51.89 kB / 378.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.356e-06/0.003032, allocations: 0 / 378.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.195e-05/0.003054, allocations: 0 / 378.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.003198, allocations: 59.73 kB / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.003201, allocations: 0 / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.003201, allocations: 0 / 378.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.003206, allocations: 0 / 378.9 MB, free: 2.125 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.0003547/0.00356, allocations: 382 kB / 379.2 MB, free: 1.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.003604, allocations: 12.03 kB / 379.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.003657, allocations: 0.9375 kB / 379.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.086e-05/0.003738, allocations: 108.6 kB / 379.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.003753, allocations: 384 / 379.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.003763, allocations: 384 / 379.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.003874, allocations: 59.95 kB / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.003881, allocations: 192 / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.003891, allocations: 384 / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.0039, allocations: 384 / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.659e-05/0.003926, allocations: 33.58 kB / 379.4 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001091/0.004035, allocations: 108.6 kB / 379.6 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.799e-05/0.004093, allocations: 60.8 kB / 379.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.502e-05/0.004118, allocations: 33.39 kB / 379.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.004124, allocations: 3.984 kB / 379.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.00417, allocations: 63.14 kB / 379.7 MB, free: 1.109 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.323e-06/0.004171, allocations: 4 kB / 379.7 MB, free: 1.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002023/0.004374, allocations: 118.8 kB / 379.8 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.004423, allocations: 81.09 kB / 379.9 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.309e-05/0.004476, allocations: 142.2 kB / 380.1 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.00449, allocations: 25.7 kB / 380.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.004524, allocations: 131 kB / 380.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.004542, allocations: 352 / 380.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.00458, allocations: 19.38 kB / 380.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.004737, allocations: 500 kB / 380.7 MB, free: 24 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.857e-05/0.004776, allocations: 29.7 kB / 380.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.614e-05/0.004792, allocations: 29.7 kB / 380.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.431e-05/0.004837, allocations: 67.08 kB / 380.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.004839, allocations: 0 / 380.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.731e-05/0.004906, allocations: 93 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.004935, allocations: 33.8 kB / 381 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.004939, allocations: 0 / 381 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.004951, allocations: 0 / 381 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.704e-06/0.004952, allocations: 8 kB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.004958, allocations: 3.984 kB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.414e-05/0.004972, allocations: 3.938 kB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-06/0.00498, allocations: 0 / 381 MB, free: 15.71 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 7.514e-05/0.005055, allocations: 186.3 kB / 381.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-06/0.00506, allocations: 0 / 381.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.955e-06/0.005068, allocations: 3 kB / 381.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.00507, allocations: 0 / 381.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.005074, allocations: 8 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.005077, allocations: 0 / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.326e-05/0.00514, allocations: 112.6 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.005141, allocations: 0 / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-07/0.005142, allocations: 0 / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.81e-07/0.005143, allocations: 0 / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.00515, allocations: 4 kB / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.00515, allocations: 0 / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.005151, allocations: 0 / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.562e-05/0.005237, allocations: 135.7 kB / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-06/0.005241, allocations: 4.031 kB / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.005257, allocations: 4 kB / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.461e-06/0.005263, allocations: 0 / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.325e-05/0.005276, allocations: 0 / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.005278, allocations: 0 / 381.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.195e-05/0.00531, allocations: 123.2 kB / 381.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00531, allocations: 0 / 381.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001607/0.005471, allocations: 23.92 kB / 381.6 MB, free: 15.03 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.0003864/0.005857, allocations: 218.4 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.569e-05/0.005953, allocations: 122.4 kB / 381.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.005954, allocations: 4.062 kB / 381.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.844e-05/0.005983, allocations: 88.8 kB / 382 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.511e-05/0.006078, allocations: 10.17 kB / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001879/0.006266, allocations: 117.6 kB / 382.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.165e-05/0.006297, allocations: 51.36 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.006303, allocations: 0 / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.281e-05/0.006316, allocations: 12.5 kB / 382.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.006317, allocations: 0 / 382.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of Templates: time 0.002396/0.008712, allocations: 0.6212 MB / 382.8 MB, free: 13.72 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1621271069161594]