Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 103.3 kB / 18.4 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 189.1 kB / 19.33 MB, free: 3.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 47.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1172, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001958/0.1193, allocations: 490.5 kB / 376.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003219/0.1196, allocations: 59.78 kB / 376.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.1196, allocations: 0 / 376.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.1197, allocations: 0 / 376.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.373e-05/0.1198, allocations: 11.98 kB / 376.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/0.12, allocations: 27.91 kB / 376.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.1201, allocations: 23.97 kB / 376.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.69e-05/0.1202, allocations: 7.938 kB / 376.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.185e-05/0.1202, allocations: 11.98 kB / 376.4 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.353e-05/0.1203, allocations: 23.97 kB / 376.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.1203, allocations: 0 / 376.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.911e-05/0.1204, allocations: 4 kB / 376.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1204, allocations: 11.94 kB / 376.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.1205, allocations: 11.92 kB / 376.5 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1206, allocations: 23.91 kB / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1206, allocations: 0 / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1206, allocations: 0 / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.1206, allocations: 4 kB / 376.5 MB, free: 3.906 MB / 318.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.0005045/0.1211, allocations: 369.1 kB / 376.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1212, allocations: 12.03 kB / 376.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.1212, allocations: 0.9375 kB / 376.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.1214, allocations: 172.3 kB / 377 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.1214, allocations: 384 / 377 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.1214, allocations: 384 / 377 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.1216, allocations: 66.23 kB / 377.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.1216, allocations: 192 / 377.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.1216, allocations: 7.938 kB / 377.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1216, allocations: 0 / 377.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.762e-05/0.1217, allocations: 27.98 kB / 377.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.1219, allocations: 157.7 kB / 377.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.43e-05/0.122, allocations: 54.44 kB / 377.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.427e-05/0.122, allocations: 36.92 kB / 377.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.122, allocations: 0 / 377.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.1221, allocations: 60.27 kB / 377.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.1221, allocations: 0 / 377.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003244/0.1224, allocations: 191.2 kB / 377.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.1225, allocations: 77.11 kB / 377.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.1226, allocations: 113.8 kB / 377.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.1226, allocations: 25.7 kB / 377.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.748e-05/0.1227, allocations: 92.12 kB / 377.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.1227, allocations: 3.906 kB / 377.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.1227, allocations: 21.75 kB / 377.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1229, allocations: 314.8 kB / 378.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.706e-05/0.1229, allocations: 31.92 kB / 378.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.635e-05/0.123, allocations: 23.98 kB / 378.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.1231, allocations: 120.2 kB / 378.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1231, allocations: 0 / 378.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001556/0.1232, allocations: 151.3 kB / 378.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/0.1233, allocations: 37.69 kB / 378.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1233, allocations: 3.938 kB / 378.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1233, allocations: 4.062 kB / 378.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.1233, allocations: 256 / 378.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.1233, allocations: 4 kB / 378.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.224e-05/0.1234, allocations: 4 kB / 378.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.1234, allocations: 4 kB / 378.6 MB, free: 1.488 MB / 318.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.0001084/0.1235, allocations: 147.5 kB / 378.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.1235, allocations: 0 / 378.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.694e-05/0.1235, allocations: 11.84 kB / 378.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1235, allocations: 0 / 378.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1236, allocations: 4 kB / 378.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1236, allocations: 0 / 378.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.1237, allocations: 169.5 kB / 378.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1237, allocations: 0 / 378.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1237, allocations: 0 / 378.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1237, allocations: 0 / 378.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.1237, allocations: 7.938 kB / 379 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1237, allocations: 0 / 379 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1237, allocations: 0 / 379 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.124, allocations: 198.7 kB / 379.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.209e-05/0.124, allocations: 77.11 kB / 379.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.124, allocations: 7.938 kB / 379.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.1241, allocations: 0 / 379.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.694e-05/0.1241, allocations: 12.11 kB / 379.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.1241, allocations: 0 / 379.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.719e-05/0.1241, allocations: 91.27 kB / 379.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1241, allocations: 0 / 379.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001872/0.1243, allocations: 12 kB / 379.3 MB, free: 0.6523 MB / 318.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.0003287/0.1247, allocations: 150.5 kB / 379.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.1248, allocations: 131.3 kB / 379.6 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1249, allocations: 0 / 379.6 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.074e-05/0.1249, allocations: 95.33 kB / 379.7 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.1251, allocations: 4 kB / 379.7 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.1254, allocations: 178.6 kB / 379.9 MB, free: 44 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2128/0.3382, allocations: 0.6739 MB / 380.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.984e-05/0.3383, allocations: 8.469 kB / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3383, allocations: 1.156 kB / 380.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of Templates: time 0.002818/0.3411, allocations: 0.6615 MB / 381.2 MB, free: 12.38 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches