Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 116.9 kB / 18.4 MB, free: 4.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 190.9 kB / 21.35 MB, free: 1.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 247 MB, free: 4.32 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 51.91 kB / 358.6 MB, free: 8.477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.124, allocations: 49.44 MB / 408.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001889/0.126, allocations: 478.1 kB / 408.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002978/0.1263, allocations: 71.77 kB / 408.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.429e-05/0.1263, allocations: 0 / 408.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.1264, allocations: 0 / 408.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.964e-05/0.1265, allocations: 11.98 kB / 408.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.1267, allocations: 23.91 kB / 408.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000111/0.1268, allocations: 19.98 kB / 408.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.504e-05/0.1268, allocations: 0 / 408.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.971e-05/0.1269, allocations: 15.97 kB / 408.7 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.625e-05/0.127, allocations: 23.92 kB / 408.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.127, allocations: 0 / 408.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.72e-05/0.1271, allocations: 8 kB / 408.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.794e-05/0.1271, allocations: 11.98 kB / 408.7 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.564e-05/0.1272, allocations: 11.92 kB / 408.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.1273, allocations: 19.92 kB / 408.8 MB, free: 6.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1273, allocations: 0 / 408.8 MB, free: 6.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1273, allocations: 0 / 408.8 MB, free: 6.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.1274, allocations: 0 / 408.8 MB, free: 6.312 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005657/0.1279, allocations: 373 kB / 409.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.128, allocations: 12.03 kB / 409.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.301e-05/0.128, allocations: 8.875 kB / 409.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.1282, allocations: 172.3 kB / 409.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1283, allocations: 4.375 kB / 409.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1283, allocations: 384 / 409.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1285, allocations: 62.23 kB / 409.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1285, allocations: 192 / 409.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.1285, allocations: 3.938 kB / 409.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1285, allocations: 0 / 409.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.358e-05/0.1286, allocations: 27.98 kB / 409.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002571/0.1288, allocations: 157.7 kB / 409.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.684e-05/0.1289, allocations: 50.55 kB / 409.6 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.425e-05/0.129, allocations: 36.92 kB / 409.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.129, allocations: 0 / 409.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.286e-05/0.1291, allocations: 56.27 kB / 409.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.113e-06/0.1291, allocations: 0 / 409.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004093/0.1295, allocations: 195.2 kB / 409.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/0.1296, allocations: 85.08 kB / 410 MB, free: 4.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.1298, allocations: 109.8 kB / 410.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1298, allocations: 33.69 kB / 410.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.1299, allocations: 84.14 kB / 410.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.1299, allocations: 7.906 kB / 410.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.1299, allocations: 17.72 kB / 410.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1301, allocations: 318.8 kB / 410.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.928e-05/0.1302, allocations: 24 kB / 410.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.832e-05/0.1302, allocations: 30.09 kB / 410.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.1303, allocations: 120.2 kB / 410.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1303, allocations: 0 / 410.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001908/0.1305, allocations: 151.6 kB / 410.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.1306, allocations: 40.12 kB / 410.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1306, allocations: 3.938 kB / 410.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1306, allocations: 4 kB / 410.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1306, allocations: 4 kB / 410.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1307, allocations: 0 / 410.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.355e-05/0.1307, allocations: 3.938 kB / 410.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.1307, allocations: 8.062 kB / 410.9 MB, free: 3.883 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * 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 0.0001326/0.1308, allocations: 147.5 kB / 411.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.1309, allocations: 7.891 kB / 411.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.1309, allocations: 12.03 kB / 411.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1309, allocations: 0 / 411.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1309, allocations: 3.984 kB / 411.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1309, allocations: 0 / 411.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.1311, allocations: 161.7 kB / 411.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1311, allocations: 0 / 411.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1311, allocations: 0 / 411.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.1311, allocations: 4 kB / 411.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.1311, allocations: 7.938 kB / 411.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1311, allocations: 0 / 411.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1311, allocations: 0 / 411.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.1313, allocations: 194.7 kB / 411.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.419e-05/0.1314, allocations: 85.06 kB / 411.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.1314, allocations: 3.938 kB / 411.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.105e-05/0.1314, allocations: 0 / 411.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.1315, allocations: 8.031 kB / 411.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.1315, allocations: 0 / 411.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.1315, allocations: 91.27 kB / 411.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1316, allocations: 0 / 411.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001898/0.1318, allocations: 12 kB / 411.6 MB, free: 3.043 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0003543/0.1321, allocations: 139.6 kB / 411.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.1323, allocations: 127.4 kB / 411.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1323, allocations: 0 / 411.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.888e-05/0.1324, allocations: 99.38 kB / 412 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.1326, allocations: 0 / 412 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003149/0.1329, allocations: 174.6 kB / 412.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.1332, allocations: 0.6844 MB / 412.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.341e-05/0.1333, allocations: 7.438 kB / 412.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1333, allocations: 4.125 kB / 412.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of Templates: time 0.00263/0.1359, allocations: 0.6877 MB / 413.6 MB, free: 1.062 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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: 7.0496249590069056]