Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009594/0.0009594, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.0017/0.0017, allocations: 169 kB / 24.14 MB, free: 360 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.199/1.199, allocations: 158.6 MB / 186 MB, free: 2.762 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1812/0.1812, allocations: 32.37 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.845e-06/2.845e-06, allocations: 0 / 299 MB, free: 2.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.261e-05/4.546e-05, allocations: 2.312 kB / 299 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002339/0.002385, allocations: 0.5052 MB / 299.5 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005907/0.002975, allocations: 219.4 kB / 299.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.291e-05/0.003008, allocations: 0 / 299.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.136e-05/0.00303, allocations: 0 / 299.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.013e-05/0.00304, allocations: 0 / 299.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000418/0.003458, allocations: 47.75 kB / 299.8 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.683e-05/0.003525, allocations: 7.938 kB / 299.8 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.52e-05/0.00357, allocations: 0 / 299.8 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.917e-05/0.003609, allocations: 4 kB / 299.8 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.8e-05/0.003647, allocations: 0 / 299.8 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-06/0.003654, allocations: 0 / 299.8 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.003788, allocations: 51.94 kB / 299.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.0038, allocations: 0 / 299.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.003822, allocations: 0 / 299.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.003962, allocations: 47.88 kB / 299.9 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.003967, allocations: 4 kB / 299.9 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.003969, allocations: 0 / 299.9 MB, free: 1.352 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.003974, allocations: 0 / 299.9 MB, free: 1.352 MB / 282.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.0003396/0.004314, allocations: 254.3 kB / 300.2 MB, free: 1.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.004369, allocations: 12.03 kB / 300.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.935e-05/0.004408, allocations: 4.938 kB / 300.2 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.037e-05/0.004488, allocations: 117.6 kB / 300.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.004502, allocations: 384 / 300.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.004513, allocations: 384 / 300.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.004617, allocations: 55.97 kB / 300.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.004625, allocations: 192 / 300.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.004634, allocations: 384 / 300.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.004639, allocations: 384 / 300.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.469e-05/0.004664, allocations: 33.64 kB / 300.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.62e-05/0.00476, allocations: 57.05 kB / 300.4 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.004823, allocations: 52.23 kB / 300.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.07e-05/0.004844, allocations: 30.56 kB / 300.5 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.242e-06/0.00485, allocations: 4.062 kB / 300.5 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.004897, allocations: 60.27 kB / 300.6 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.004898, allocations: 0 / 300.6 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000172/0.00507, allocations: 110.8 kB / 300.7 MB, free: 432 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.005124, allocations: 81.11 kB / 300.8 MB, free: 332 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.816e-05/0.005172, allocations: 89.86 kB / 300.9 MB, free: 232 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.005183, allocations: 25.7 kB / 300.9 MB, free: 200 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.005212, allocations: 88.2 kB / 301 MB, free: 108 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.005232, allocations: 352 / 301 MB, free: 108 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.005264, allocations: 17.72 kB / 301 MB, free: 84 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.2241/0.2294, allocations: 314.6 kB / 301.3 MB, free: 19.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.33e-05/0.2294, allocations: 26.23 kB / 301.3 MB, free: 19.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.192e-05/0.2295, allocations: 27.61 kB / 301.3 MB, free: 19.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.882e-05/0.2296, allocations: 61.28 kB / 301.4 MB, free: 19.63 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.2296, allocations: 0 / 301.4 MB, free: 19.63 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001161/0.2297, allocations: 87.77 kB / 301.5 MB, free: 19.54 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.597e-05/0.2297, allocations: 36.22 kB / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2297, allocations: 0 / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2298, allocations: 0.5 kB / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-06/0.2298, allocations: 4.812 kB / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.2298, allocations: 1.281 kB / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/0.2298, allocations: 0.625 kB / 301.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.2298, allocations: 1.062 kB / 301.5 MB, free: 19.5 MB / 282.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 8.73e-05/0.2299, allocations: 143.2 kB / 301.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.548e-05/0.2299, allocations: 1.5 kB / 301.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.858e-05/0.2299, allocations: 4.156 kB / 301.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.2299, allocations: 1.25 kB / 301.7 MB, free: 19.36 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2299, allocations: 5.75 kB / 301.7 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2299, allocations: 3.75 kB / 301.7 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.826e-05/0.23, allocations: 62.98 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.23, allocations: 0.9375 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-06/0.23, allocations: 2.109 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.23, allocations: 1.062 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.23, allocations: 0 / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.23, allocations: 1.781 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.23, allocations: 1.422 kB / 301.8 MB, free: 19.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.2301, allocations: 118.6 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.2302, allocations: 2.844 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.2302, allocations: 2.484 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-06/0.2302, allocations: 0.5312 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.2302, allocations: 5.547 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.2302, allocations: 0.9375 kB / 301.9 MB, free: 19.15 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.929e-06/0.2302, allocations: 6.516 kB / 301.9 MB, free: 19.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2302, allocations: 3.547 kB / 301.9 MB, free: 19.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.2304, allocations: 20.86 kB / 301.9 MB, free: 19.14 MB / 282.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.0006184/0.231, allocations: 221.8 kB / 302.1 MB, free: 19.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.2311, allocations: 122.7 kB / 302.3 MB, free: 18.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2311, allocations: 0 / 302.3 MB, free: 18.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.779e-05/0.2312, allocations: 88.36 kB / 302.3 MB, free: 18.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.417e-05/0.2312, allocations: 9.641 kB / 302.4 MB, free: 18.83 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002453/0.2315, allocations: 106 kB / 302.5 MB, free: 18.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.963e-05/0.2315, allocations: 56.75 kB / 302.5 MB, free: 18.63 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.338e-06/0.2315, allocations: 1 kB / 302.5 MB, free: 18.63 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.889e-05/0.2316, allocations: 53.09 kB / 302.6 MB, free: 18.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.653e-06/0.2316, allocations: 0 / 302.6 MB, free: 18.59 MB / 282.7 MB Notification: Performance of Templates: time 0.003659/0.2352, allocations: 0.6906 MB / 303.3 MB, free: 18.51 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.463907645083964]