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.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.0008801/0.0008801, allocations: 79.75 kB / 22.45 MB, free: 2.098 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.0009304/0.0009304, allocations: 169.8 kB / 25.75 MB, free: 8.598 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.01/1.01, allocations: 158.6 MB / 187.5 MB, free: 2.938 MB / 170.7 MB " [Timeout remaining time 179] 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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 251.1 MB, free: 7.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.128e-05, allocations: 6.312 kB / 251.1 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001511/0.001532, allocations: 0.4915 MB / 251.6 MB, free: 7.352 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002295/0.001762, allocations: 59.73 kB / 251.6 MB, free: 7.293 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.195e-05/0.001794, allocations: 0 / 251.6 MB, free: 7.293 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.61e-05/0.00183, allocations: 7.938 kB / 251.6 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.929e-05/0.001899, allocations: 19.95 kB / 251.6 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001453/0.002044, allocations: 15.98 kB / 251.7 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.809e-05/0.002132, allocations: 23.98 kB / 251.7 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.109e-05/0.002173, allocations: 7.969 kB / 251.7 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.793e-05/0.002211, allocations: 11.94 kB / 251.7 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.382e-05/0.002285, allocations: 27.95 kB / 251.7 MB, free: 7.18 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.002301, allocations: 3.938 kB / 251.7 MB, free: 7.176 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.903e-05/0.00234, allocations: 8 kB / 251.7 MB, free: 7.168 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.709e-05/0.002377, allocations: 7.984 kB / 251.8 MB, free: 7.16 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.002406, allocations: 11.94 kB / 251.8 MB, free: 7.148 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.002508, allocations: 27.91 kB / 251.8 MB, free: 7.121 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.00251, allocations: 0 / 251.8 MB, free: 7.121 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.002511, allocations: 0 / 251.8 MB, free: 7.121 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.002515, allocations: 0 / 251.8 MB, free: 7.121 MB / 234.7 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.0003343/0.002849, allocations: 394.3 kB / 252.2 MB, free: 6.691 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.00289, allocations: 15.98 kB / 252.2 MB, free: 6.676 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.002929, allocations: 4.891 kB / 252.2 MB, free: 6.672 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.52e-05/0.003024, allocations: 112.6 kB / 252.3 MB, free: 6.535 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.003036, allocations: 384 / 252.3 MB, free: 6.535 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-06/0.003044, allocations: 4.375 kB / 252.3 MB, free: 6.531 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.53e-05/0.00314, allocations: 71.89 kB / 252.4 MB, free: 6.449 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.003147, allocations: 192 / 252.4 MB, free: 6.449 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.003155, allocations: 384 / 252.4 MB, free: 6.449 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.003163, allocations: 384 / 252.4 MB, free: 6.449 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.519e-05/0.003198, allocations: 41.64 kB / 252.4 MB, free: 6.402 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.003324, allocations: 120.6 kB / 252.5 MB, free: 6.25 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.642e-05/0.00338, allocations: 56.77 kB / 252.6 MB, free: 6.176 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.343e-05/0.003414, allocations: 41.45 kB / 252.6 MB, free: 6.125 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-06/0.003419, allocations: 4 kB / 252.6 MB, free: 6.121 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.003463, allocations: 67.03 kB / 252.7 MB, free: 6.039 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.003464, allocations: 4 kB / 252.7 MB, free: 6.035 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002282/0.003692, allocations: 158.7 kB / 252.9 MB, free: 5.855 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.003736, allocations: 81.11 kB / 252.9 MB, free: 5.758 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.003852, allocations: 177.9 kB / 253.1 MB, free: 5.566 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.003865, allocations: 25.7 kB / 253.1 MB, free: 5.535 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.258e-05/0.003928, allocations: 136.1 kB / 253.3 MB, free: 5.398 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.003946, allocations: 3.953 kB / 253.3 MB, free: 5.395 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.003986, allocations: 27.36 kB / 253.3 MB, free: 5.359 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.004137, allocations: 496.1 kB / 253.8 MB, free: 4.863 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.709e-05/0.004164, allocations: 33.7 kB / 253.8 MB, free: 4.824 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.549e-05/0.004189, allocations: 37.69 kB / 253.9 MB, free: 4.781 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.221e-05/0.004252, allocations: 83.09 kB / 253.9 MB, free: 4.684 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.004253, allocations: 0 / 253.9 MB, free: 4.684 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001205/0.004374, allocations: 117.1 kB / 254.1 MB, free: 4.551 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.004405, allocations: 33.7 kB / 254.1 MB, free: 4.512 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.004408, allocations: 0 / 254.1 MB, free: 4.512 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.00442, allocations: 0 / 254.1 MB, free: 4.512 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.00442, allocations: 0 / 254.1 MB, free: 4.512 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.004426, allocations: 3.984 kB / 254.1 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.908e-05/0.004445, allocations: 7.891 kB / 254.1 MB, free: 4.5 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.627e-06/0.004454, allocations: 4 kB / 254.1 MB, free: 4.496 MB / 234.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: 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.0001011/0.004555, allocations: 190.3 kB / 254.3 MB, free: 4.293 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.004573, allocations: 11.94 kB / 254.3 MB, free: 4.281 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.79e-05/0.004591, allocations: 7.984 kB / 254.3 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.004593, allocations: 192 / 254.3 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.004596, allocations: 0 / 254.3 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.004602, allocations: 7.922 kB / 254.3 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.583e-05/0.004688, allocations: 120.6 kB / 254.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.004688, allocations: 0 / 254.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.004689, allocations: 0 / 254.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.004691, allocations: 0 / 254.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.004702, allocations: 4 kB / 254.4 MB, free: 4.105 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.004703, allocations: 4 kB / 254.4 MB, free: 4.102 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.004704, allocations: 0 / 254.4 MB, free: 4.102 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.004884, allocations: 175.7 kB / 254.6 MB, free: 3.895 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.688e-06/0.004894, allocations: 8 kB / 254.6 MB, free: 3.887 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.004912, allocations: 0 / 254.6 MB, free: 3.887 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.202e-05/0.004924, allocations: 3.938 kB / 254.6 MB, free: 3.883 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.302e-05/0.004937, allocations: 4 kB / 254.6 MB, free: 3.879 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.004943, allocations: 4.234 kB / 254.6 MB, free: 3.875 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.381e-05/0.004997, allocations: 139.1 kB / 254.8 MB, free: 3.738 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.004997, allocations: 0 / 254.8 MB, free: 3.738 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.005211, allocations: 15.88 kB / 254.8 MB, free: 3.723 MB / 234.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: 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.0002538/0.005465, allocations: 130.6 kB / 254.9 MB, free: 3.594 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.00561, allocations: 138.5 kB / 255 MB, free: 3.43 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.005611, allocations: 0 / 255 MB, free: 3.43 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 6.118e-05/0.005673, allocations: 100.8 kB / 255.1 MB, free: 3.309 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.005828, allocations: 11.98 kB / 255.2 MB, free: 3.297 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.006068, allocations: 151.9 kB / 255.3 MB, free: 3.113 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.591e-05/0.006104, allocations: 59.47 kB / 255.4 MB, free: 3.035 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 4.769e-06/0.006109, allocations: 4 kB / 255.4 MB, free: 3.031 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.237e-05/0.006121, allocations: 8.5 kB / 255.4 MB, free: 3.023 MB / 234.7 MB Notification: Performance of SimCode: time 5.11e-07/0.006122, allocations: 0 / 255.4 MB, free: 3.023 MB / 234.7 MB Notification: Performance of Templates: time 0.002777/0.008899, allocations: 0.7071 MB / 256.1 MB, free: 2.32 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.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: 2.668971803970635]