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.00084/0.00084, allocations: 84.44 kB / 20.69 MB, free: 3.871 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.001256/0.001256, allocations: 174.3 kB / 23.96 MB, free: 0.6016 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.8518/0.8518, allocations: 158.6 MB / 185.7 MB, free: 3.055 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.1324/0.1324, allocations: 32.38 MB / 270.4 MB, free: 14.96 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.774e-06/1.774e-06, allocations: 0 / 408.1 MB, free: 1.77 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.127e-05, allocations: 2.281 kB / 408.1 MB, free: 1.766 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009331/0.0009544, allocations: 498.4 kB / 408.6 MB, free: 1.285 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003976/0.001352, allocations: 221.1 kB / 408.8 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.001371, allocations: 0 / 408.8 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.001385, allocations: 0 / 408.8 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.001391, allocations: 0 / 408.8 MB, free: 1.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.001657, allocations: 51.72 kB / 408.8 MB, free: 1.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.239e-05/0.001709, allocations: 0 / 408.8 MB, free: 1.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.944e-05/0.001748, allocations: 0 / 408.8 MB, free: 1.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.762e-05/0.001776, allocations: 11.97 kB / 408.8 MB, free: 1.008 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.245e-05/0.001798, allocations: 0 / 408.8 MB, free: 1.008 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.433e-06/0.001805, allocations: 0 / 408.8 MB, free: 1.008 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.00191, allocations: 43.95 kB / 408.9 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.001918, allocations: 4 kB / 408.9 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.938e-05/0.001938, allocations: 0 / 408.9 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.002041, allocations: 51.86 kB / 408.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.002042, allocations: 0 / 408.9 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.002044, allocations: 4 kB / 408.9 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.002048, allocations: 0 / 408.9 MB, free: 0.9062 MB / 378.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.0002422/0.00229, allocations: 276 kB / 409.2 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.002325, allocations: 16.02 kB / 409.2 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.002355, allocations: 0.9375 kB / 409.2 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.27e-05/0.002407, allocations: 101.8 kB / 409.3 MB, free: 468 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.002418, allocations: 8.297 kB / 409.3 MB, free: 460 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.002426, allocations: 384 / 409.3 MB, free: 460 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.935e-05/0.002505, allocations: 59.97 kB / 409.4 MB, free: 388 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.002512, allocations: 192 / 409.4 MB, free: 388 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.002521, allocations: 4.375 kB / 409.4 MB, free: 384 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.002525, allocations: 4.312 kB / 409.4 MB, free: 380 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.28e-05/0.002548, allocations: 33.64 kB / 409.4 MB, free: 340 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.199e-05/0.00264, allocations: 97.31 kB / 409.5 MB, free: 212 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.442e-05/0.002685, allocations: 44.31 kB / 409.6 MB, free: 152 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.002702, allocations: 30.56 kB / 409.6 MB, free: 112 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.002709, allocations: 0 / 409.6 MB, free: 112 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.002746, allocations: 68.33 kB / 409.7 MB, free: 28 kB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.002747, allocations: 0 / 409.7 MB, free: 28 kB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001747/0.002922, allocations: 118.7 kB / 409.8 MB, free: 15.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.002958, allocations: 81.23 kB / 409.9 MB, free: 15.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.969e-05/0.002987, allocations: 93.81 kB / 410 MB, free: 15.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.797e-06/0.002996, allocations: 25.7 kB / 410 MB, free: 15.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.757e-05/0.003014, allocations: 88.14 kB / 410.1 MB, free: 15.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.003028, allocations: 0 / 410.1 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.057e-05/0.003048, allocations: 9.719 kB / 410.1 MB, free: 15.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003205/0.003369, allocations: 322.8 kB / 410.4 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.616e-05/0.003385, allocations: 25.7 kB / 410.4 MB, free: 15.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.133e-05/0.003396, allocations: 25.7 kB / 410.4 MB, free: 15.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.657e-05/0.003433, allocations: 68.2 kB / 410.5 MB, free: 15.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.003435, allocations: 4.062 kB / 410.5 MB, free: 15.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.097e-05/0.003486, allocations: 89.09 kB / 410.6 MB, free: 14.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.003509, allocations: 37.64 kB / 410.6 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.003513, allocations: 0 / 410.6 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.003524, allocations: 0 / 410.6 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.003525, allocations: 0 / 410.6 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.003529, allocations: 0 / 410.6 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.173e-05/0.003541, allocations: 7.875 kB / 410.6 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.003547, allocations: 0 / 410.6 MB, free: 14.92 MB / 394.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.864e-05/0.003606, allocations: 147.6 kB / 410.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-06/0.003609, allocations: 0 / 410.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.425e-06/0.003618, allocations: 3 kB / 410.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.003619, allocations: 0 / 410.8 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.003623, allocations: 4 kB / 410.8 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.003626, allocations: 0 / 410.8 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.528e-05/0.003671, allocations: 97.27 kB / 410.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.003672, allocations: 0 / 410.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.003672, allocations: 0 / 410.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.51e-07/0.003673, allocations: 3.938 kB / 410.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.003678, allocations: 4 kB / 410.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.003679, allocations: 4 kB / 410.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.00368, allocations: 7.922 kB / 410.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.495e-05/0.003745, allocations: 116.5 kB / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-06/0.00375, allocations: 3.984 kB / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-06/0.003759, allocations: 0 / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.509e-06/0.003764, allocations: 4 kB / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-06/0.003773, allocations: 0 / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-06/0.003775, allocations: 0 / 411 MB, free: 14.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.813e-05/0.003793, allocations: 75.28 kB / 411.1 MB, free: 14.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.003793, allocations: 0 / 411.1 MB, free: 14.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001453/0.003938, allocations: 19.94 kB / 411.1 MB, free: 14.36 MB / 394.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.0002778/0.004216, allocations: 213.4 kB / 411.3 MB, free: 14.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.815e-05/0.004304, allocations: 118.7 kB / 411.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.004306, allocations: 0 / 411.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.551e-05/0.004332, allocations: 81.11 kB / 411.5 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.086e-05/0.004423, allocations: 7.594 kB / 411.5 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001601/0.004583, allocations: 144.4 kB / 411.7 MB, free: 13.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.113e-05/0.004614, allocations: 51.36 kB / 411.7 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.55e-05/0.00463, allocations: 8.5 kB / 411.7 MB, free: 13.66 MB / 394.7 MB Notification: Performance of SimCode: time 3.7e-07/0.00463, allocations: 4 kB / 411.7 MB, free: 13.65 MB / 394.7 MB Notification: Performance of Templates: time 0.001636/0.006265, allocations: 0.765 MB / 412.5 MB, free: 12.89 MB / 394.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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.550600292161107]