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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_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.001505/0.001505, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001325/0.001325, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 52.03 kB / 300.6 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09162, allocations: 49.45 MB / 350 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001714/0.09337, allocations: 482.8 kB / 350.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002457/0.09364, allocations: 55.8 kB / 350.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.816e-05/0.09368, allocations: 4 kB / 350.6 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.398e-05/0.09373, allocations: 0 / 350.6 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.987e-05/0.09379, allocations: 15.98 kB / 350.6 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.09394, allocations: 23.91 kB / 350.6 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.823e-05/0.09404, allocations: 23.97 kB / 350.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.185e-05/0.09409, allocations: 4 kB / 350.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.62e-05/0.09412, allocations: 7.984 kB / 350.6 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.739e-05/0.09419, allocations: 31.91 kB / 350.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.09422, allocations: 0 / 350.7 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.998e-05/0.09426, allocations: 4 kB / 350.7 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.938e-05/0.09431, allocations: 11.98 kB / 350.7 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.09434, allocations: 7.938 kB / 350.7 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.222e-05/0.09444, allocations: 31.91 kB / 350.7 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09445, allocations: 0 / 350.7 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.09446, allocations: 0 / 350.7 MB, free: 3.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.09447, allocations: 0 / 350.7 MB, free: 3.75 MB / 286.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.0003348/0.09481, allocations: 365.1 kB / 351.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.09485, allocations: 12.03 kB / 351.1 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.09489, allocations: 4.844 kB / 351.1 MB, free: 3.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.09502, allocations: 172.6 kB / 351.3 MB, free: 3.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.09504, allocations: 4.375 kB / 351.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.09506, allocations: 384 / 351.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.09518, allocations: 66.19 kB / 351.3 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.09519, allocations: 4.172 kB / 351.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.09521, allocations: 3.938 kB / 351.4 MB, free: 3.031 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.09522, allocations: 3.938 kB / 351.4 MB, free: 3.027 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.898e-05/0.09527, allocations: 27.98 kB / 351.4 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.09541, allocations: 153.7 kB / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.275e-05/0.09549, allocations: 54.55 kB / 351.6 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.929e-05/0.09554, allocations: 32.92 kB / 351.6 MB, free: 2.703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-06/0.09555, allocations: 0 / 351.6 MB, free: 2.703 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.0956, allocations: 56.27 kB / 351.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.09561, allocations: 0 / 351.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002832/0.09589, allocations: 195.1 kB / 351.9 MB, free: 2.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.09595, allocations: 81.09 kB / 351.9 MB, free: 2.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.4e-05/0.09605, allocations: 117.9 kB / 352.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.09607, allocations: 29.7 kB / 352.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.09611, allocations: 80.14 kB / 352.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.09613, allocations: 3.906 kB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.09618, allocations: 21.72 kB / 352.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.09629, allocations: 314.8 kB / 352.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.417e-05/0.09633, allocations: 31.98 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.677e-05/0.09636, allocations: 23.98 kB / 352.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.471e-05/0.09646, allocations: 116.3 kB / 352.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.09647, allocations: 0 / 352.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000167/0.09664, allocations: 163.3 kB / 352.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.09669, allocations: 32.52 kB / 352.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.0967, allocations: 3.938 kB / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.09672, allocations: 0 / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.09672, allocations: 0 / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.09673, allocations: 4.25 kB / 352.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.893e-05/0.09676, allocations: 0 / 352.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.09677, allocations: 8 kB / 352.9 MB, free: 1.336 MB / 286.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 8.769e-05/0.09687, allocations: 147.6 kB / 353 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.09689, allocations: 3.906 kB / 353 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.934e-05/0.09691, allocations: 15.84 kB / 353 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09692, allocations: 0 / 353 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.09693, allocations: 3.984 kB / 353 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.09693, allocations: 0 / 353 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.953e-05/0.09704, allocations: 153.7 kB / 353.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.09704, allocations: 0 / 353.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.09705, allocations: 3.938 kB / 353.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.09706, allocations: 0 / 353.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.09707, allocations: 15.94 kB / 353.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.09708, allocations: 3.938 kB / 353.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09709, allocations: 0 / 353.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/0.09728, allocations: 198.9 kB / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.09733, allocations: 84.95 kB / 353.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.09736, allocations: 7.938 kB / 353.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.397e-05/0.09738, allocations: 0 / 353.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.406e-05/0.0974, allocations: 7.984 kB / 353.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.09741, allocations: 4.031 kB / 353.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.064e-05/0.09745, allocations: 87.28 kB / 353.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09746, allocations: 0 / 353.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001915/0.09765, allocations: 12 kB / 353.6 MB, free: 496 kB / 286.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.0002679/0.09793, allocations: 132.2 kB / 353.7 MB, free: 368 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.09809, allocations: 127.4 kB / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.0981, allocations: 0 / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.158e-05/0.09818, allocations: 99.31 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.09832, allocations: 4 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002628/0.09859, allocations: 144.9 kB / 354.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.09883, allocations: 0.6807 MB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.09884, allocations: 128 / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.107e-06/0.09886, allocations: 11.44 kB / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09887, allocations: 0 / 354.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Templates: time 0.002722/0.1016, allocations: 0.6735 MB / 355.5 MB, free: 14.56 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches