Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008659/0.0008658, allocations: 93.56 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.8 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002217, allocations: 4 kB / 307.7 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.08903, allocations: 51.51 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005452/0.08962, allocations: 206 kB / 359.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002554/0.08989, allocations: 59.86 kB / 359.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.691e-05/0.08992, allocations: 0 / 359.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.7e-05/0.08996, allocations: 3.938 kB / 359.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.835e-05/0.09003, allocations: 27.95 kB / 359.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001297/0.09017, allocations: 12 kB / 359.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.793e-05/0.09025, allocations: 19.97 kB / 359.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.278e-05/0.0903, allocations: 4 kB / 359.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.922e-05/0.09033, allocations: 7.984 kB / 359.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.285e-05/0.0904, allocations: 27.91 kB / 359.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.09043, allocations: 0 / 359.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.683e-05/0.09049, allocations: 4 kB / 359.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.787e-05/0.09053, allocations: 7.984 kB / 359.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.367e-05/0.09058, allocations: 37.64 kB / 359.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.54e-05/0.09067, allocations: 27.91 kB / 359.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.09069, allocations: 0 / 359.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.09069, allocations: 0 / 359.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.0907, allocations: 0 / 359.7 MB, free: 12.86 MB / 302.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.0003099/0.09102, allocations: 357.2 kB / 360 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.09107, allocations: 15.97 kB / 360 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.0911, allocations: 4.844 kB / 360.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.09121, allocations: 168.6 kB / 360.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.09123, allocations: 384 / 360.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.09125, allocations: 4.359 kB / 360.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.09135, allocations: 66.25 kB / 360.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.09137, allocations: 192 / 360.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.09138, allocations: 7.875 kB / 360.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.09139, allocations: 0 / 360.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.695e-05/0.09143, allocations: 23.98 kB / 360.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.09156, allocations: 157.7 kB / 360.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.771e-05/0.09163, allocations: 50.55 kB / 360.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.763e-05/0.09167, allocations: 36.92 kB / 360.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.463e-06/0.09168, allocations: 0 / 360.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.09173, allocations: 60.27 kB / 360.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.09173, allocations: 0 / 360.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002543/0.09199, allocations: 191.1 kB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.09204, allocations: 81.11 kB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.3e-05/0.09213, allocations: 117.8 kB / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.09215, allocations: 25.7 kB / 361 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.09219, allocations: 88.17 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.09221, allocations: 3.906 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.09224, allocations: 17.72 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.748e-05/0.09234, allocations: 314.8 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.244e-05/0.09238, allocations: 27.98 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.823e-05/0.09241, allocations: 27.98 kB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.449e-05/0.0925, allocations: 116.2 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09251, allocations: 0 / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001496/0.09266, allocations: 159.3 kB / 361.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.0927, allocations: 37.75 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.09271, allocations: 3.938 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.09273, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.09273, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-06/0.09274, allocations: 4 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.78e-05/0.09277, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.09278, allocations: 4 kB / 361.8 MB, free: 10.46 MB / 302.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.126e-05/0.09287, allocations: 147.5 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.09288, allocations: 3.906 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.562e-05/0.09291, allocations: 16.09 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.09291, allocations: 192 / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.09292, allocations: 4 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.09293, allocations: 3.984 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.57e-05/0.09302, allocations: 161.7 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.09303, allocations: 3.938 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.09303, allocations: 0 / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.09304, allocations: 0 / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.09305, allocations: 7.938 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.09306, allocations: 0 / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.09307, allocations: 0 / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.09326, allocations: 202.7 kB / 362.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/0.0933, allocations: 84.95 kB / 362.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.09332, allocations: 7.938 kB / 362.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.09334, allocations: 0 / 362.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.09336, allocations: 4 kB / 362.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.09337, allocations: 0 / 362.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.203e-05/0.09341, allocations: 91.27 kB / 362.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09342, allocations: 32 / 362.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.09369, allocations: 16 kB / 362.5 MB, free: 9.602 MB / 302.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.0002335/0.09394, allocations: 129.4 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.09408, allocations: 123.4 kB / 362.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.09409, allocations: 0 / 362.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.203e-05/0.09416, allocations: 99.45 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.09431, allocations: 4 kB / 362.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002443/0.09456, allocations: 146.7 kB / 363 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.09477, allocations: 0.685 MB / 363.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.09478, allocations: 0 / 363.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.002e-05/0.0948, allocations: 7.438 kB / 363.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.0948, allocations: 3.938 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Templates: time 0.0024/0.09721, allocations: 0.6542 MB / 364.4 MB, free: 7.695 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches