Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001409/0.001409, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001821/0.00182, allocations: 187.9 kB / 18.51 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 56.14 kB / 280.6 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08703, allocations: 46.62 MB / 327.3 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001723/0.0888, allocations: 489.2 kB / 327.7 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002542/0.08907, allocations: 57.2 kB / 327.8 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.809e-05/0.08912, allocations: 0 / 327.8 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.167e-05/0.08919, allocations: 0 / 327.8 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.329e-05/0.08926, allocations: 11.98 kB / 327.8 MB, free: 3.945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.08942, allocations: 27.84 kB / 327.8 MB, free: 3.918 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.912e-05/0.08952, allocations: 31.92 kB / 327.9 MB, free: 3.887 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.251e-05/0.08957, allocations: 4 kB / 327.9 MB, free: 3.883 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.344e-05/0.08961, allocations: 11.97 kB / 327.9 MB, free: 3.871 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.744e-05/0.08968, allocations: 19.98 kB / 327.9 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.08971, allocations: 0 / 327.9 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.939e-05/0.08977, allocations: 19.92 kB / 327.9 MB, free: 3.832 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.08983, allocations: 0 / 327.9 MB, free: 3.832 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.711e-05/0.08987, allocations: 11.92 kB / 327.9 MB, free: 3.82 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.034e-05/0.08996, allocations: 23.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.08998, allocations: 0 / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08998, allocations: 4 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.09, allocations: 0 / 328 MB, free: 3.793 MB / 270.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.000355/0.09036, allocations: 361.5 kB / 328.3 MB, free: 3.383 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.09041, allocations: 12.03 kB / 328.3 MB, free: 3.371 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.09045, allocations: 4.844 kB / 328.3 MB, free: 3.367 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.09057, allocations: 176.2 kB / 328.5 MB, free: 3.156 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.09059, allocations: 384 / 328.5 MB, free: 3.156 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.0906, allocations: 384 / 328.5 MB, free: 3.156 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.09072, allocations: 58.25 kB / 328.6 MB, free: 3.094 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.09074, allocations: 4.188 kB / 328.6 MB, free: 3.09 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.09075, allocations: 3.938 kB / 328.6 MB, free: 3.086 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.09076, allocations: 0 / 328.6 MB, free: 3.086 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.96e-05/0.09081, allocations: 31.98 kB / 328.6 MB, free: 3.055 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.09095, allocations: 153.7 kB / 328.8 MB, free: 2.855 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.313e-05/0.09102, allocations: 46.55 kB / 328.8 MB, free: 2.801 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.756e-05/0.09106, allocations: 36.92 kB / 328.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.09107, allocations: 0 / 328.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.09112, allocations: 64.27 kB / 328.9 MB, free: 2.684 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.09113, allocations: 0 / 328.9 MB, free: 2.684 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002762/0.09141, allocations: 191.2 kB / 329.1 MB, free: 2.484 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.09147, allocations: 81.09 kB / 329.2 MB, free: 2.387 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.987e-05/0.09156, allocations: 117.7 kB / 329.3 MB, free: 2.262 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.09158, allocations: 29.7 kB / 329.3 MB, free: 2.227 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.09162, allocations: 84.14 kB / 329.4 MB, free: 2.141 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.09165, allocations: 3.906 kB / 329.4 MB, free: 2.137 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.09169, allocations: 25.75 kB / 329.4 MB, free: 2.105 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.0918, allocations: 314.8 kB / 329.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.682e-05/0.09184, allocations: 27.98 kB / 329.8 MB, free: 1.762 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.823e-05/0.09188, allocations: 27.98 kB / 329.8 MB, free: 1.734 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.09199, allocations: 116.4 kB / 329.9 MB, free: 1.605 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09199, allocations: 0 / 329.9 MB, free: 1.605 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000156/0.09216, allocations: 159.3 kB / 330 MB, free: 1.438 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.0922, allocations: 33.7 kB / 330.1 MB, free: 1.398 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.09222, allocations: 4 kB / 330.1 MB, free: 1.395 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.09224, allocations: 8 kB / 330.1 MB, free: 1.387 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.09224, allocations: 3.938 kB / 330.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.09225, allocations: 0 / 330.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.077e-05/0.09228, allocations: 4 kB / 330.1 MB, free: 1.379 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.09229, allocations: 8.234 kB / 330.1 MB, free: 1.371 MB / 270.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 9.537e-05/0.09239, allocations: 147.5 kB / 330.3 MB, free: 1.211 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.09242, allocations: 7.906 kB / 330.3 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.427e-05/0.09243, allocations: 7.844 kB / 330.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.09244, allocations: 3.984 kB / 330.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.09245, allocations: 4 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.09246, allocations: 0 / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.09257, allocations: 161.6 kB / 330.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.09257, allocations: 0 / 330.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.09258, allocations: 0 / 330.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.09258, allocations: 0 / 330.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.0926, allocations: 7.938 kB / 330.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.0926, allocations: 0 / 330.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.09261, allocations: 0 / 330.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.0928, allocations: 194.8 kB / 330.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.09284, allocations: 88.95 kB / 330.7 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.09287, allocations: 3.938 kB / 330.7 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.09288, allocations: 0 / 330.7 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.743e-05/0.09291, allocations: 11.98 kB / 330.7 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.09292, allocations: 3.938 kB / 330.7 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.073e-05/0.09296, allocations: 83.28 kB / 330.8 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09297, allocations: 4 kB / 330.8 MB, free: 0.543 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001982/0.09317, allocations: 8 kB / 330.8 MB, free: 0.5352 MB / 270.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.0002629/0.09344, allocations: 146.6 kB / 331 MB, free: 400 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.09361, allocations: 123.4 kB / 331.1 MB, free: 264 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09362, allocations: 0 / 331.1 MB, free: 264 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 6.438e-05/0.09369, allocations: 99.38 kB / 331.2 MB, free: 152 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.09382, allocations: 0 / 331.2 MB, free: 152 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002652/0.0941, allocations: 149.1 kB / 331.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.09438, allocations: 0.6807 MB / 332 MB, free: 15.27 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.793e-06/0.09439, allocations: 0 / 332 MB, free: 15.27 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.043e-05/0.09441, allocations: 7.438 kB / 332 MB, free: 15.26 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.09441, allocations: 0 / 332 MB, free: 15.26 MB / 286.1 MB Notification: Performance of Templates: time 0.002728/0.09714, allocations: 0.6738 MB / 332.7 MB, free: 14.59 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches