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.001133/0.001133, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001076/0.001076, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.218/1.218, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000219/0.000219, allocations: 10.31 kB / 300.7 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08041/0.08064, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004397/0.08111, allocations: 196.7 kB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001675/0.08129, allocations: 65.09 kB / 351.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.799e-05/0.08132, allocations: 0 / 351.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.44e-05/0.08136, allocations: 4 kB / 351.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.074e-05/0.08142, allocations: 15.97 kB / 351.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001112/0.08154, allocations: 15.98 kB / 351.4 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.355e-05/0.08159, allocations: 15.98 kB / 351.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.08164, allocations: 0 / 351.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.487e-05/0.08167, allocations: 11.98 kB / 351.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.669e-05/0.08173, allocations: 19.91 kB / 351.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.08175, allocations: 4 kB / 351.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.964e-05/0.08178, allocations: 4 kB / 351.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.08181, allocations: 3.984 kB / 351.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.743e-05/0.08185, allocations: 37.7 kB / 351.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.616e-05/0.08191, allocations: 15.98 kB / 351.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.08191, allocations: 0 / 351.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.08192, allocations: 0 / 351.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.08193, allocations: 7.875 kB / 351.5 MB, free: 11.35 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.0002539/0.08219, allocations: 357.2 kB / 351.9 MB, free: 10.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.08223, allocations: 12.03 kB / 351.9 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.08225, allocations: 3.953 kB / 351.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.08236, allocations: 167 kB / 352.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.08238, allocations: 7.938 kB / 352.1 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.0824, allocations: 0 / 352.1 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.837e-05/0.0825, allocations: 61.67 kB / 352.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.08251, allocations: 0 / 352.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.08253, allocations: 0 / 352.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.08253, allocations: 0 / 352.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.618e-05/0.08257, allocations: 35.94 kB / 352.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001118/0.08269, allocations: 157.6 kB / 352.3 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.514e-05/0.08275, allocations: 50.56 kB / 352.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.08276, allocations: 0 / 352.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.0828, allocations: 60.27 kB / 352.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 7.11e-07/0.08281, allocations: 4.031 kB / 352.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002646/0.08308, allocations: 256.4 kB / 352.7 MB, free: 10 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.08312, allocations: 81.11 kB / 352.8 MB, free: 9.902 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.441e-05/0.08319, allocations: 109.8 kB / 352.9 MB, free: 9.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.08321, allocations: 29.7 kB / 352.9 MB, free: 9.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.346e-05/0.08325, allocations: 88.16 kB / 353 MB, free: 9.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.08327, allocations: 7.844 kB / 353 MB, free: 9.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.08328, allocations: 4 kB / 353 MB, free: 9.648 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 7.968e-05/0.08336, allocations: 318.8 kB / 353.3 MB, free: 9.328 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.688e-05/0.0834, allocations: 23.98 kB / 353.3 MB, free: 9.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.189e-05/0.08342, allocations: 28.12 kB / 353.4 MB, free: 9.277 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.675e-05/0.08347, allocations: 61.72 kB / 353.4 MB, free: 9.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.08348, allocations: 0 / 353.4 MB, free: 9.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001275/0.08361, allocations: 151.3 kB / 353.6 MB, free: 9.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.08365, allocations: 41.77 kB / 353.6 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.08366, allocations: 0 / 353.6 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.08368, allocations: 3.984 kB / 353.6 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.474e-06/0.08368, allocations: 3.938 kB / 353.6 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.08369, allocations: 0 / 353.6 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.656e-05/0.08371, allocations: 4 kB / 353.6 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.08372, allocations: 0 / 353.6 MB, free: 8.992 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 (success1,success2,success3,success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.179e-05/0.0838, allocations: 147.5 kB / 353.8 MB, free: 8.832 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.918e-06/0.08381, allocations: 4 kB / 353.8 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.356e-05/0.08383, allocations: 7.906 kB / 353.8 MB, free: 8.812 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-06/0.08384, allocations: 4 kB / 353.8 MB, free: 8.809 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.08385, allocations: 3.938 kB / 353.8 MB, free: 8.805 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.08386, allocations: 4.188 kB / 353.8 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.206e-05/0.08394, allocations: 157.6 kB / 353.9 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.08395, allocations: 11.98 kB / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.08396, allocations: 0 / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.08396, allocations: 0 / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.08397, allocations: 0 / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.08398, allocations: 3.984 kB / 354 MB, free: 8.582 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.08399, allocations: 4 kB / 354 MB, free: 8.578 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001654/0.08416, allocations: 203.5 kB / 354.2 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.109e-05/0.0842, allocations: 81.11 kB / 354.2 MB, free: 8.258 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.08422, allocations: 7.938 kB / 354.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.08423, allocations: 0 / 354.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.098e-05/0.08425, allocations: 0 / 354.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.08426, allocations: 4 kB / 354.2 MB, free: 8.246 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.615e-05/0.0843, allocations: 87.27 kB / 354.3 MB, free: 8.16 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0843, allocations: 4.031 kB / 354.3 MB, free: 8.156 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001739/0.08448, allocations: 12 kB / 354.3 MB, free: 8.145 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002041/0.08469, allocations: 126.3 kB / 354.5 MB, free: 8.027 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.08482, allocations: 127.4 kB / 354.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.08483, allocations: 0 / 354.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.013e-05/0.0849, allocations: 99.45 kB / 354.7 MB, free: 7.781 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.098e-05/0.08498, allocations: 10.61 kB / 354.7 MB, free: 7.773 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.08518, allocations: 138.7 kB / 354.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001852/0.08537, allocations: 0.7002 MB / 355.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.837e-06/0.08538, allocations: 0 / 355.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.895e-06/0.08539, allocations: 11.44 kB / 355.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.0854, allocations: 0 / 355.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of Templates: time 0.001981/0.08738, allocations: 0.6172 MB / 356.2 MB, free: 6.266 MB / 286.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","../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches