Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 202.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 226.6 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008236/0.0008236, allocations: 96.08 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002079/0.000208, allocations: 4 kB / 356.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1987, allocations: 51.28 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005345/0.1992, allocations: 210.4 kB / 408.2 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001956/0.1994, allocations: 58.86 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.641e-05/0.1995, allocations: 0 / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.699e-05/0.1995, allocations: 4 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.331e-05/0.1996, allocations: 15.92 kB / 408.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001304/0.1997, allocations: 16.81 kB / 408.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.392e-05/0.1998, allocations: 19.98 kB / 408.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.692e-05/0.1998, allocations: 0.5 kB / 408.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.512e-05/0.1999, allocations: 20.62 kB / 408.4 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.983e-05/0.1999, allocations: 15.98 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.2, allocations: 1.156 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.192e-05/0.2, allocations: 4 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.2, allocations: 7.938 kB / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.38e-05/0.2001, allocations: 42.84 kB / 408.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.917e-05/0.2001, allocations: 15.98 kB / 408.4 MB, free: 27.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2001, allocations: 0 / 408.4 MB, free: 27.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2001, allocations: 0.5312 kB / 408.5 MB, free: 27.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.2002, allocations: 0 / 408.5 MB, free: 27.32 MB / 298.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.0002078/0.2004, allocations: 354.3 kB / 408.8 MB, free: 26.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2004, allocations: 8.906 kB / 408.8 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.2004, allocations: 8.922 kB / 408.8 MB, free: 26.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.964e-05/0.2005, allocations: 165.3 kB / 409 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.2006, allocations: 4.906 kB / 409 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.2006, allocations: 1.219 kB / 409 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.2007, allocations: 58.23 kB / 409 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2007, allocations: 1.625 kB / 409 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2007, allocations: 15.88 kB / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2007, allocations: 0 / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.307e-05/0.2008, allocations: 39.75 kB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000108/0.2009, allocations: 157.7 kB / 409.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.693e-05/0.2009, allocations: 46.61 kB / 409.3 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.635e-05/0.201, allocations: 31.86 kB / 409.3 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-06/0.201, allocations: 0 / 409.3 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.201, allocations: 64.25 kB / 409.4 MB, free: 26.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.201, allocations: 0 / 409.4 MB, free: 26.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002163/0.2013, allocations: 187.8 kB / 409.6 MB, free: 26.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.2013, allocations: 81.61 kB / 409.7 MB, free: 25.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.136e-05/0.2014, allocations: 121.8 kB / 409.8 MB, free: 25.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.2014, allocations: 25.7 kB / 409.8 MB, free: 25.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.752e-05/0.2014, allocations: 80.14 kB / 409.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.2014, allocations: 7.984 kB / 409.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.2014, allocations: 0 / 409.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.2015, allocations: 318.8 kB / 410.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.547e-05/0.2015, allocations: 27.98 kB / 410.2 MB, free: 25.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.2015, allocations: 20 kB / 410.2 MB, free: 25.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.653e-05/0.2016, allocations: 124.3 kB / 410.4 MB, free: 25.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2016, allocations: 3.938 kB / 410.4 MB, free: 25.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001092/0.2017, allocations: 159.2 kB / 410.5 MB, free: 25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.2017, allocations: 33.69 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2018, allocations: 3.938 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2018, allocations: 0 / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.2018, allocations: 4 kB / 410.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.2018, allocations: 0 / 410.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.848e-05/0.2018, allocations: 0 / 410.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.2018, allocations: 4 kB / 410.6 MB, free: 24.95 MB / 298.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 5.797e-05/0.2019, allocations: 151.6 kB / 410.7 MB, free: 24.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-06/0.2019, allocations: 0 / 410.7 MB, free: 24.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.365e-05/0.2019, allocations: 11.84 kB / 410.7 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.2019, allocations: 0 / 410.7 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2019, allocations: 0 / 410.7 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2019, allocations: 3.984 kB / 410.7 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.336e-05/0.202, allocations: 161.6 kB / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.202, allocations: 3.938 kB / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.202, allocations: 0 / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.202, allocations: 0 / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.202, allocations: 11.94 kB / 410.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.202, allocations: 0 / 410.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.202, allocations: 0 / 410.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.2022, allocations: 194.7 kB / 411.1 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.436e-05/0.2022, allocations: 77.11 kB / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.2022, allocations: 8.188 kB / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.229e-05/0.2022, allocations: 192 / 411.2 MB, free: 24.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.46e-05/0.2023, allocations: 8 kB / 411.2 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.2023, allocations: 12 kB / 411.2 MB, free: 24.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.291e-05/0.2023, allocations: 87.28 kB / 411.3 MB, free: 24.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2023, allocations: 0 / 411.3 MB, free: 24.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.2025, allocations: 12 kB / 411.3 MB, free: 24.1 MB / 298.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.0002156/0.2028, allocations: 126.1 kB / 411.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.2029, allocations: 131.4 kB / 411.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2029, allocations: 0 / 411.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.302e-05/0.2029, allocations: 103.3 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.2031, allocations: 4 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001983/0.2033, allocations: 168.3 kB / 411.8 MB, free: 23.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.049e-05/0.2034, allocations: 0.6809 MB / 412.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.953e-06/0.2034, allocations: 11.56 kB / 412.5 MB, free: 22.81 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.2034, allocations: 0 / 412.5 MB, free: 22.81 MB / 298.7 MB Notification: Performance of Templates: time 0.001605/0.205, allocations: 0.6591 MB / 413.2 MB, free: 22.16 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches