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.00226/0.00226, allocations: 92.97 kB / 20.21 MB, free: 4.207 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.002891/0.002891, allocations: 169.2 kB / 23.52 MB, free: 0.8984 MB / 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.446/1.446, allocations: 158.6 MB / 185.3 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] 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.2147/0.2147, allocations: 32.37 MB / 270 MB, free: 14.77 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 1.743e-06/1.743e-06, allocations: 0 / 346.9 MB, free: 9.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.891e-05/3.065e-05, allocations: 2.312 kB / 346.9 MB, free: 9.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001375/0.001405, allocations: 0.4937 MB / 347.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005317/0.001937, allocations: 223.3 kB / 347.6 MB, free: 9.133 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.001961, allocations: 4 kB / 347.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.063e-05/0.001972, allocations: 0 / 347.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.001977, allocations: 0 / 347.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.002253, allocations: 47.78 kB / 347.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.736e-05/0.002301, allocations: 0 / 347.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.454e-05/0.002335, allocations: 3.984 kB / 347.7 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.886e-05/0.002364, allocations: 7.938 kB / 347.7 MB, free: 9.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.764e-05/0.002392, allocations: 3.984 kB / 347.7 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.002399, allocations: 0 / 347.7 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.002501, allocations: 43.95 kB / 347.7 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-06/0.002508, allocations: 4 kB / 347.7 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.002527, allocations: 4 kB / 347.7 MB, free: 9.016 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001086/0.002635, allocations: 47.88 kB / 347.8 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.002637, allocations: 0 / 347.8 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.002638, allocations: 0 / 347.8 MB, free: 8.969 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.002642, allocations: 0 / 347.8 MB, free: 8.969 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.0002578/0.0029, allocations: 374 kB / 348.1 MB, free: 8.559 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.002937, allocations: 12.03 kB / 348.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.002975, allocations: 0.9375 kB / 348.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.054e-05/0.003015, allocations: 112.6 kB / 348.3 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.003027, allocations: 384 / 348.3 MB, free: 8.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.003035, allocations: 12.31 kB / 348.3 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.986e-05/0.003125, allocations: 55.97 kB / 348.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.003133, allocations: 192 / 348.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.003143, allocations: 4.375 kB / 348.3 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.003148, allocations: 384 / 348.3 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.349e-05/0.003171, allocations: 33.62 kB / 348.4 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.799e-05/0.003249, allocations: 108.6 kB / 348.5 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.715e-05/0.003296, allocations: 56.7 kB / 348.5 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.097e-05/0.003317, allocations: 37.48 kB / 348.6 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.003326, allocations: 0 / 348.6 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.003354, allocations: 59.09 kB / 348.6 MB, free: 7.953 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.003355, allocations: 4 kB / 348.6 MB, free: 7.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.003516, allocations: 122.8 kB / 348.8 MB, free: 7.805 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.003539, allocations: 85.05 kB / 348.8 MB, free: 7.703 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.93e-05/0.003569, allocations: 142.2 kB / 349 MB, free: 7.551 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-06/0.003574, allocations: 25.7 kB / 349 MB, free: 7.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.618e-05/0.00359, allocations: 126.9 kB / 349.1 MB, free: 7.391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.003604, allocations: 0 / 349.1 MB, free: 7.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.003627, allocations: 23.36 kB / 349.1 MB, free: 7.359 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.417e-05/0.003682, allocations: 496.1 kB / 349.6 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.003696, allocations: 33.7 kB / 349.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.238e-06/0.003705, allocations: 29.83 kB / 349.7 MB, free: 6.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.902e-05/0.003734, allocations: 63.09 kB / 349.8 MB, free: 6.711 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.003736, allocations: 0 / 349.8 MB, free: 6.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.22e-05/0.003788, allocations: 93.09 kB / 349.8 MB, free: 6.602 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.003809, allocations: 29.7 kB / 349.9 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.003813, allocations: 3.938 kB / 349.9 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.003826, allocations: 0 / 349.9 MB, free: 6.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.003827, allocations: 4 kB / 349.9 MB, free: 6.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.00383, allocations: 0 / 349.9 MB, free: 6.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.35e-05/0.003844, allocations: 7.969 kB / 349.9 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.003851, allocations: 4 kB / 349.9 MB, free: 6.547 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 5.188e-05/0.003903, allocations: 186.3 kB / 350.1 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-06/0.003911, allocations: 0 / 350.1 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-06/0.003919, allocations: 3 kB / 350.1 MB, free: 6.344 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.00392, allocations: 0 / 350.1 MB, free: 6.344 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.003935, allocations: 7.938 kB / 350.1 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.003938, allocations: 0 / 350.1 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.916e-05/0.003977, allocations: 108.6 kB / 350.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.003978, allocations: 0 / 350.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.003978, allocations: 0 / 350.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.003979, allocations: 4 kB / 350.2 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.003986, allocations: 4 kB / 350.2 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.003987, allocations: 3.984 kB / 350.2 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.003988, allocations: 0 / 350.2 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.344e-05/0.004061, allocations: 135.7 kB / 350.3 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-06/0.004065, allocations: 3.984 kB / 350.3 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.004077, allocations: 8 kB / 350.3 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-06/0.004086, allocations: 3.984 kB / 350.4 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.0041, allocations: 0 / 350.4 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.004103, allocations: 4 kB / 350.4 MB, free: 5.996 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.416e-05/0.004117, allocations: 127.2 kB / 350.5 MB, free: 5.871 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004117, allocations: 4 kB / 350.5 MB, free: 5.867 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000218/0.004335, allocations: 11.94 kB / 350.5 MB, free: 5.855 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.0006076/0.004943, allocations: 213.3 kB / 350.7 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.863e-05/0.005031, allocations: 126.5 kB / 350.8 MB, free: 5.531 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.005033, allocations: 0 / 350.8 MB, free: 5.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.227e-05/0.005055, allocations: 88.8 kB / 350.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.005173, allocations: 0 / 350.9 MB, free: 5.422 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001493/0.005322, allocations: 117.6 kB / 351 MB, free: 5.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.653e-05/0.005348, allocations: 55.36 kB / 351.1 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.07e-06/0.005353, allocations: 4.125 kB / 351.1 MB, free: 5.191 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-06/0.005363, allocations: 8.5 kB / 351.1 MB, free: 5.184 MB / 282.7 MB Notification: Performance of SimCode: time 4.1e-07/0.005363, allocations: 0 / 351.1 MB, free: 5.184 MB / 282.7 MB Notification: Performance of Templates: time 0.003166/0.008529, allocations: 0.6159 MB / 351.7 MB, free: 4.57 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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.805260671069846]