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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001092, allocations: 176.8 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 223.3 MB / 241.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007996/0.0007996, allocations: 93.25 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003025, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2341, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08703/0.3212, allocations: 74.97 MB / 477.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.3214, allocations: 63.97 kB / 477.8 MB, free: 5.289 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001889/0.3233, allocations: 0.8307 MB / 478.6 MB, free: 4.461 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3233, allocations: 0 / 478.6 MB, free: 4.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.3234, allocations: 0 / 478.6 MB, free: 4.461 MB / 346.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.0003065/0.3237, allocations: 368.1 kB / 479 MB, free: 4.047 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3237, allocations: 12.03 kB / 479 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.3238, allocations: 0.9375 kB / 479 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.3239, allocations: 172.3 kB / 479.1 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.3239, allocations: 4.312 kB / 479.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.3239, allocations: 384 / 479.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.3241, allocations: 78.22 kB / 479.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.3241, allocations: 2.688 kB / 479.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3241, allocations: 3.938 kB / 479.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3241, allocations: 0 / 479.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.719e-05/0.3242, allocations: 35.97 kB / 479.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.3243, allocations: 161.7 kB / 479.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.03e-05/0.3244, allocations: 65.75 kB / 479.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.895e-05/0.3245, allocations: 44.91 kB / 479.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-06/0.3245, allocations: 0 / 479.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.3245, allocations: 56.27 kB / 479.6 MB, free: 3.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.3246, allocations: 4 kB / 479.6 MB, free: 3.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003838/0.3249, allocations: 239.1 kB / 479.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.325, allocations: 77.11 kB / 479.9 MB, free: 2.965 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.3251, allocations: 117.9 kB / 480 MB, free: 2.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.3251, allocations: 29.7 kB / 480 MB, free: 2.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.3252, allocations: 80.14 kB / 480.1 MB, free: 2.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.3252, allocations: 7.906 kB / 480.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/0.3252, allocations: 0 / 480.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3253, allocations: 326.7 kB / 480.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.299e-05/0.3254, allocations: 39.97 kB / 480.5 MB, free: 2.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.646e-05/0.3254, allocations: 39.91 kB / 480.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.3256, allocations: 140.2 kB / 480.7 MB, free: 2.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3256, allocations: 4.031 kB / 480.7 MB, free: 2.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002649/0.3259, allocations: 187.3 kB / 480.8 MB, free: 1.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.3259, allocations: 33.69 kB / 480.9 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3259, allocations: 3.938 kB / 480.9 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3259, allocations: 4 kB / 480.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.3259, allocations: 0 / 480.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.326, allocations: 0 / 480.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.078e-05/0.326, allocations: 0 / 480.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.326, allocations: 11.94 kB / 480.9 MB, free: 1.898 MB / 346.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 9.831e-05/0.3261, allocations: 151.6 kB / 481 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.3261, allocations: 4.188 kB / 481 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.3262, allocations: 11.83 kB / 481.1 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3262, allocations: 0 / 481.1 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3262, allocations: 0 / 481.1 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3262, allocations: 4 kB / 481.1 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.3263, allocations: 157.7 kB / 481.2 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3263, allocations: 256 / 481.2 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.925e-06/0.3263, allocations: 8 kB / 481.2 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3263, allocations: 0 / 481.2 MB, free: 1.496 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.3263, allocations: 11.92 kB / 481.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3263, allocations: 4 kB / 481.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3263, allocations: 0 / 481.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.3266, allocations: 234.6 kB / 481.5 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.307e-05/0.3267, allocations: 85.02 kB / 481.6 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.3267, allocations: 3.938 kB / 481.6 MB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.484e-05/0.3267, allocations: 4 kB / 481.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.3268, allocations: 3.938 kB / 481.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3268, allocations: 20.02 kB / 481.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.053e-05/0.3268, allocations: 83.28 kB / 481.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3268, allocations: 0 / 481.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001848/0.327, allocations: 8 kB / 481.7 MB, free: 1.004 MB / 346.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.000279/0.3273, allocations: 141.3 kB / 481.8 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.3275, allocations: 127.4 kB / 481.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3275, allocations: 0 / 481.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.625e-05/0.3276, allocations: 99.38 kB / 482 MB, free: 0.625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.3277, allocations: 4 kB / 482 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002339/0.3279, allocations: 138.7 kB / 482.2 MB, free: 468 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.3282, allocations: 0.6809 MB / 482.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.3282, allocations: 128 / 482.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.298e-06/0.3283, allocations: 11.44 kB / 482.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.843e-06/0.3283, allocations: 0 / 482.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of Templates: time 0.002437/0.3307, allocations: 0.6268 MB / 483.5 MB, free: 15.12 MB / 362.7 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/jenkins1/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