Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009078/0.0009078, allocations: 181.4 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007685/0.0007685, allocations: 85.97 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 12 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2279, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08545/0.3134, allocations: 74.1 MB / 449.8 MB, free: 6.547 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.3137, allocations: 59.97 kB / 449.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001939/0.3156, allocations: 0.8258 MB / 450.7 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3156, allocations: 0 / 450.7 MB, free: 5.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3156, allocations: 4 kB / 450.7 MB, free: 5.656 MB / 330.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.0003913/0.316, allocations: 365.2 kB / 451.1 MB, free: 5.242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3161, allocations: 12.02 kB / 451.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.959e-05/0.3162, allocations: 12.78 kB / 451.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.3163, allocations: 160.4 kB / 451.2 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3163, allocations: 384 / 451.2 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.3163, allocations: 4.375 kB / 451.2 MB, free: 5.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.3165, allocations: 82.14 kB / 451.3 MB, free: 4.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3165, allocations: 192 / 451.3 MB, free: 4.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.3166, allocations: 7.938 kB / 451.3 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3166, allocations: 0 / 451.3 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.9e-05/0.3166, allocations: 39.97 kB / 451.4 MB, free: 4.887 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.3168, allocations: 157.7 kB / 451.5 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.861e-05/0.3169, allocations: 62.53 kB / 451.6 MB, free: 4.613 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.495e-05/0.317, allocations: 40.91 kB / 451.6 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.317, allocations: 4 kB / 451.6 MB, free: 4.566 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/0.3171, allocations: 68.2 kB / 451.7 MB, free: 4.484 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 8.51e-07/0.3171, allocations: 4 kB / 451.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004055/0.3175, allocations: 239.2 kB / 451.9 MB, free: 4.234 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.3175, allocations: 77.11 kB / 452 MB, free: 4.141 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.261e-05/0.3176, allocations: 113.8 kB / 452.1 MB, free: 4.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3177, allocations: 25.7 kB / 452.1 MB, free: 3.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.3177, allocations: 84.14 kB / 452.2 MB, free: 3.902 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.3178, allocations: 7.891 kB / 452.2 MB, free: 3.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.3178, allocations: 4 kB / 452.2 MB, free: 3.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3179, allocations: 318.9 kB / 452.5 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-05/0.318, allocations: 35.97 kB / 452.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.68e-05/0.318, allocations: 39.95 kB / 452.6 MB, free: 3.496 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.3182, allocations: 148.1 kB / 452.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3182, allocations: 0 / 452.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00023/0.3184, allocations: 187.3 kB / 452.9 MB, free: 3.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.3185, allocations: 33.7 kB / 453 MB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.3185, allocations: 3.938 kB / 453 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.3185, allocations: 0 / 453 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.493e-06/0.3185, allocations: 0 / 453 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.3185, allocations: 4.062 kB / 453 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.3185, allocations: 4 kB / 453 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.3186, allocations: 15.97 kB / 453 MB, free: 3.074 MB / 330.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 (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 0.000106/0.3187, allocations: 143.5 kB / 453.1 MB, free: 2.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.3187, allocations: 7.844 kB / 453.2 MB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.697e-05/0.3187, allocations: 15.83 kB / 453.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.3187, allocations: 0 / 453.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3187, allocations: 0 / 453.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3187, allocations: 0 / 453.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.3189, allocations: 169.6 kB / 453.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3189, allocations: 0 / 453.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3189, allocations: 0 / 453.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.3189, allocations: 0 / 453.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.3189, allocations: 7.938 kB / 453.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.3189, allocations: 0 / 453.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3189, allocations: 0 / 453.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3192, allocations: 230.7 kB / 453.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.3193, allocations: 81.02 kB / 453.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.3193, allocations: 15.95 kB / 453.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.3193, allocations: 0 / 453.7 MB, free: 2.309 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.568e-05/0.3193, allocations: 7.938 kB / 453.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3194, allocations: 8.25 kB / 453.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.52e-05/0.3194, allocations: 91.27 kB / 453.8 MB, free: 2.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3194, allocations: 0 / 453.8 MB, free: 2.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001733/0.3196, allocations: 12 kB / 453.8 MB, free: 2.191 MB / 330.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 (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.0002737/0.3199, allocations: 139.8 kB / 453.9 MB, free: 2.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.32, allocations: 131.3 kB / 454 MB, free: 1.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3201, allocations: 0 / 454 MB, free: 1.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.974e-05/0.3201, allocations: 95.39 kB / 454.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.3203, allocations: 0 / 454.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002932/0.3206, allocations: 176.5 kB / 454.3 MB, free: 1.609 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.3209, allocations: 0.677 MB / 455 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.789e-06/0.3209, allocations: 7.438 kB / 455 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3209, allocations: 4 kB / 455 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of Templates: time 0.002033/0.323, allocations: 0.6639 MB / 455.7 MB, free: 240 kB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches