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: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008822/0.0008823, allocations: 175 kB / 16.72 MB, free: 5.082 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.191/1.191, allocations: 205.4 MB / 222.9 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.0007108/0.0007109, allocations: 94.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002976, allocations: 12 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004826/0.2012, allocations: 211.3 kB / 375.4 MB, free: 45.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001893/0.2014, allocations: 59.25 kB / 375.4 MB, free: 45.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.224e-05/0.2015, allocations: 0 / 375.4 MB, free: 45.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.462e-05/0.2015, allocations: 0 / 375.4 MB, free: 45.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.445e-05/0.2016, allocations: 19.91 kB / 375.5 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001255/0.2017, allocations: 23.09 kB / 375.5 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.423e-05/0.2018, allocations: 16.77 kB / 375.5 MB, free: 45.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.776e-05/0.2018, allocations: 1.75 kB / 375.5 MB, free: 45.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.2018, allocations: 7.344 kB / 375.5 MB, free: 45.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.147e-05/0.2019, allocations: 26.42 kB / 375.5 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.2019, allocations: 1.219 kB / 375.5 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.488e-05/0.202, allocations: 8.562 kB / 375.5 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.748e-05/0.202, allocations: 7.375 kB / 375.5 MB, free: 45.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.202, allocations: 36.92 kB / 375.6 MB, free: 45.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.212e-05/0.2021, allocations: 17.09 kB / 375.6 MB, free: 45.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2021, allocations: 0 / 375.6 MB, free: 45.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2021, allocations: 5.188 kB / 375.6 MB, free: 45.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.2021, allocations: 0 / 375.6 MB, free: 45.11 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.0002103/0.2023, allocations: 356 kB / 376 MB, free: 44.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2024, allocations: 10.34 kB / 376 MB, free: 44.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.2024, allocations: 41.22 kB / 376 MB, free: 44.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.228e-05/0.2025, allocations: 8.031 kB / 376 MB, free: 44.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.362e-05/0.2025, allocations: 174.5 kB / 376.2 MB, free: 44.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.2026, allocations: 6.531 kB / 376.2 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.2026, allocations: 2.781 kB / 376.2 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.2027, allocations: 71.47 kB / 376.3 MB, free: 44.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2027, allocations: 3.938 kB / 376.3 MB, free: 44.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.2027, allocations: 1.031 kB / 376.3 MB, free: 44.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2027, allocations: 1.125 kB / 376.3 MB, free: 44.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.599e-05/0.2028, allocations: 32.73 kB / 376.3 MB, free: 44.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.203, allocations: 251.5 kB / 376.5 MB, free: 44.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.275e-05/0.203, allocations: 70.2 kB / 376.6 MB, free: 44.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.639e-05/0.2031, allocations: 50.75 kB / 376.7 MB, free: 44.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.2031, allocations: 0 / 376.7 MB, free: 44.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.2032, allocations: 67.5 kB / 376.7 MB, free: 43.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.2032, allocations: 0 / 376.7 MB, free: 43.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002844/0.2035, allocations: 215.5 kB / 376.9 MB, free: 43.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2035, allocations: 78.8 kB / 377 MB, free: 43.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.648e-05/0.2036, allocations: 114.1 kB / 377.1 MB, free: 43.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-06/0.2036, allocations: 26.7 kB / 377.2 MB, free: 43.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.952e-05/0.2036, allocations: 90.19 kB / 377.2 MB, free: 43.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.2036, allocations: 19.03 kB / 377.3 MB, free: 43.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.2036, allocations: 5.188 kB / 377.3 MB, free: 43.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.969e-05/0.2037, allocations: 312 kB / 377.6 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.736e-05/0.2037, allocations: 36.61 kB / 377.6 MB, free: 43.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.194e-05/0.2038, allocations: 33.8 kB / 377.6 MB, free: 43.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.128e-05/0.2039, allocations: 135.3 kB / 377.8 MB, free: 43.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2039, allocations: 0 / 377.8 MB, free: 43.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001539/0.204, allocations: 174 kB / 377.9 MB, free: 43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.2041, allocations: 31.73 kB / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.2041, allocations: 0 / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.2041, allocations: 1 kB / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.479e-05/0.2041, allocations: 1.125 kB / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2041, allocations: 0 / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.2041, allocations: 6.031 kB / 378 MB, free: 42.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2042, allocations: 7.109 kB / 378 MB, free: 42.96 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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 6.213e-05/0.2042, allocations: 152.5 kB / 378.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.2043, allocations: 7.906 kB / 378.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.762e-05/0.2043, allocations: 17.45 kB / 378.2 MB, free: 42.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.2043, allocations: 1.125 kB / 378.2 MB, free: 42.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2043, allocations: 0 / 378.2 MB, free: 42.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2043, allocations: 1.062 kB / 378.2 MB, free: 42.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.2046, allocations: 440.4 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2046, allocations: 1.094 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.344e-06/0.2046, allocations: 1.094 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.2046, allocations: 3.938 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.2046, allocations: 2.062 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2046, allocations: 1.281 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2046, allocations: 3.938 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.2048, allocations: 294.4 kB / 378.9 MB, free: 42.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.2049, allocations: 91.25 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.2049, allocations: 1.812 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.012e-05/0.2049, allocations: 2 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.205, allocations: 6.047 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-06/0.205, allocations: 2.188 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.638e-05/0.205, allocations: 88.72 kB / 379.1 MB, free: 42.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.205, allocations: 0 / 379.1 MB, free: 42.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002064/0.2052, allocations: 11.09 kB / 379.1 MB, free: 42.01 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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0005289/0.2057, allocations: 0.9099 MB / 380 MB, free: 41.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.2059, allocations: 137.9 kB / 380.1 MB, free: 41.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2059, allocations: 0 / 380.1 MB, free: 41.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.291e-05/0.206, allocations: 117.5 kB / 380.3 MB, free: 41.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.2062, allocations: 10.67 kB / 380.3 MB, free: 41.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006548/0.2068, allocations: 0.6037 MB / 380.9 MB, free: 40.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.685e-05/0.207, allocations: 0.6832 MB / 381.5 MB, free: 39.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.257e-05/0.207, allocations: 21.89 kB / 381.6 MB, free: 39.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.207, allocations: 0 / 381.6 MB, free: 39.89 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.657/2.864, allocations: 0.9826 MB / 382.6 MB, free: 39.41 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > 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