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.001087/0.001087, allocations: 91.22 kB / 20.42 MB, free: 4.145 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.001095/0.001095, allocations: 165 kB / 23.8 MB, free: 0.7773 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 0.9038/0.9038, allocations: 158.6 MB / 185.7 MB, free: 2.922 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.1692/0.1692, allocations: 32.38 MB / 270.4 MB, free: 14.7 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.483e-06/1.483e-06, allocations: 0 / 347.6 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.631e-05/2.779e-05, allocations: 2.312 kB / 347.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001168/0.001196, allocations: 0.5103 MB / 348.1 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004211/0.001617, allocations: 219.3 kB / 348.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.001639, allocations: 4 kB / 348.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.001657, allocations: 0 / 348.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.001663, allocations: 0 / 348.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.001937, allocations: 55.69 kB / 348.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.513e-05/0.001993, allocations: 0 / 348.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.83e-05/0.002031, allocations: 4 kB / 348.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.77e-05/0.002059, allocations: 0 / 348.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.505e-05/0.002084, allocations: 0 / 348.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.827e-06/0.002092, allocations: 0 / 348.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.002197, allocations: 51.89 kB / 348.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.002206, allocations: 0 / 348.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.00223, allocations: 4 kB / 348.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.002338, allocations: 51.86 kB / 348.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.00234, allocations: 0 / 348.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.002341, allocations: 0 / 348.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.002346, allocations: 0 / 348.5 MB, free: 8.586 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.0002197/0.002565, allocations: 381.9 kB / 348.9 MB, free: 8.168 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.002605, allocations: 12.03 kB / 348.9 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.002639, allocations: 4.938 kB / 348.9 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.411e-05/0.002673, allocations: 104.6 kB / 349 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.002683, allocations: 4.375 kB / 349 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.002693, allocations: 384 / 349 MB, free: 8.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.745e-05/0.00277, allocations: 59.95 kB / 349.1 MB, free: 7.949 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.002778, allocations: 4.188 kB / 349.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.002787, allocations: 384 / 349.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.002793, allocations: 384 / 349.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.524e-05/0.002808, allocations: 33.58 kB / 349.1 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.749e-05/0.002876, allocations: 108.6 kB / 349.2 MB, free: 7.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.321e-05/0.002909, allocations: 52.77 kB / 349.3 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.592e-05/0.002925, allocations: 41.47 kB / 349.3 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-06/0.002929, allocations: 0 / 349.3 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.002953, allocations: 59.09 kB / 349.4 MB, free: 7.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.002954, allocations: 4 kB / 349.4 MB, free: 7.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.003105, allocations: 118.7 kB / 349.5 MB, free: 7.426 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.003131, allocations: 89.09 kB / 349.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.197e-05/0.003163, allocations: 142.2 kB / 349.7 MB, free: 7.168 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-06/0.003167, allocations: 25.7 kB / 349.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.005e-05/0.003177, allocations: 126.9 kB / 349.9 MB, free: 7.008 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.003194, allocations: 0 / 349.9 MB, free: 7.008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/0.003216, allocations: 19.38 kB / 349.9 MB, free: 6.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.027e-05/0.003256, allocations: 496.1 kB / 350.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.003268, allocations: 25.7 kB / 350.4 MB, free: 6.453 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.003275, allocations: 33.83 kB / 350.4 MB, free: 6.414 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.239e-05/0.003308, allocations: 71.08 kB / 350.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.003309, allocations: 0 / 350.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.335e-05/0.003353, allocations: 89.05 kB / 350.6 MB, free: 6.223 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.003374, allocations: 29.7 kB / 350.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.003379, allocations: 0 / 350.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.003394, allocations: 0 / 350.6 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-06/0.003398, allocations: 3.984 kB / 350.6 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.003404, allocations: 3.938 kB / 350.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-06/0.003414, allocations: 12.38 kB / 350.6 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.00342, allocations: 0 / 350.6 MB, free: 6.168 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 4.42e-05/0.003464, allocations: 186.3 kB / 350.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.158e-06/0.003468, allocations: 0 / 350.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.003481, allocations: 3 kB / 350.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.003482, allocations: 0 / 350.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.003485, allocations: 0 / 350.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.003487, allocations: 0 / 350.8 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.555e-05/0.003523, allocations: 120.5 kB / 350.9 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.003523, allocations: 0 / 350.9 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.003524, allocations: 0 / 350.9 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.003525, allocations: 4 kB / 350.9 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.003532, allocations: 4 kB / 350.9 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.003533, allocations: 4 kB / 351 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.003534, allocations: 0 / 351 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.532e-05/0.003609, allocations: 135.7 kB / 351.1 MB, free: 5.633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-06/0.003613, allocations: 0 / 351.1 MB, free: 5.633 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.003628, allocations: 0 / 351.1 MB, free: 5.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-06/0.003634, allocations: 4 kB / 351.1 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.003647, allocations: 0 / 351.1 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.003649, allocations: 0 / 351.1 MB, free: 5.629 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.447e-05/0.003663, allocations: 127.2 kB / 351.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.003663, allocations: 0 / 351.2 MB, free: 5.504 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001419/0.003805, allocations: 23.92 kB / 351.2 MB, free: 5.48 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.0004138/0.004219, allocations: 216.4 kB / 351.4 MB, free: 5.305 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.64e-05/0.004316, allocations: 118.4 kB / 351.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.004317, allocations: 4 kB / 351.6 MB, free: 5.156 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.737e-05/0.004335, allocations: 88.78 kB / 351.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.787e-05/0.004433, allocations: 7.938 kB / 351.7 MB, free: 5.039 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001788/0.004611, allocations: 113.7 kB / 351.8 MB, free: 4.891 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.136e-05/0.004633, allocations: 51.36 kB / 351.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.004638, allocations: 4.125 kB / 351.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.004651, allocations: 8.5 kB / 351.8 MB, free: 4.809 MB / 282.7 MB Notification: Performance of SimCode: time 8.82e-07/0.004652, allocations: 4 kB / 351.8 MB, free: 4.805 MB / 282.7 MB Notification: Performance of Templates: time 0.002605/0.007256, allocations: 0.626 MB / 352.5 MB, free: 4.18 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.195159325376153]