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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 113.6 kB / 16.51 MB, free: 6.652 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.001402/0.001402, allocations: 199.9 kB / 17.43 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009203/0.0009203, allocations: 43.59 kB / 300 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08437/0.08531, allocations: 49.46 MB / 349.5 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001555/0.0869, allocations: 0.5402 MB / 350 MB, free: 4.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000241/0.08715, allocations: 59.8 kB / 350.1 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.511e-05/0.08718, allocations: 0 / 350.1 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.446e-05/0.08721, allocations: 0 / 350.1 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.818e-05/0.08728, allocations: 19.97 kB / 350.1 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001229/0.08741, allocations: 19.92 kB / 350.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.65e-05/0.08746, allocations: 19.98 kB / 350.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.255e-05/0.0875, allocations: 0 / 350.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.046e-05/0.08753, allocations: 15.97 kB / 350.2 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.819e-05/0.0876, allocations: 19.92 kB / 350.2 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.08762, allocations: 4 kB / 350.2 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.63e-05/0.08766, allocations: 8 kB / 350.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.793e-05/0.0877, allocations: 7.984 kB / 350.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.065e-05/0.08774, allocations: 11.94 kB / 350.2 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.928e-05/0.08782, allocations: 27.84 kB / 350.2 MB, free: 3.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.08783, allocations: 4 kB / 350.2 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08784, allocations: 0 / 350.2 MB, free: 3.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.08785, allocations: 0 / 350.2 MB, free: 3.992 MB / 286.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.0003194/0.08817, allocations: 361.5 kB / 350.6 MB, free: 3.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.08822, allocations: 8.031 kB / 350.6 MB, free: 3.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.08828, allocations: 50.58 kB / 350.7 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.08832, allocations: 4.844 kB / 350.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.08843, allocations: 168.3 kB / 350.8 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.08844, allocations: 384 / 350.8 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.08846, allocations: 8.375 kB / 350.8 MB, free: 3.301 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.08858, allocations: 66.23 kB / 350.9 MB, free: 3.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.08859, allocations: 3.938 kB / 350.9 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.08861, allocations: 8 kB / 350.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.08862, allocations: 3.938 kB / 350.9 MB, free: 3.215 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.522e-05/0.08868, allocations: 27.98 kB / 350.9 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002379/0.08892, allocations: 256.8 kB / 351.2 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.35e-05/0.08903, allocations: 74.48 kB / 351.3 MB, free: 2.805 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.823e-05/0.08909, allocations: 52.91 kB / 351.3 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.08911, allocations: 0 / 351.3 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.08916, allocations: 56.27 kB / 351.4 MB, free: 2.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.08916, allocations: 0 / 351.4 MB, free: 2.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.00029/0.08946, allocations: 211.3 kB / 351.6 MB, free: 2.461 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.08951, allocations: 77.11 kB / 351.7 MB, free: 2.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.029e-05/0.0896, allocations: 118.1 kB / 351.8 MB, free: 2.242 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.08962, allocations: 29.7 kB / 351.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.08966, allocations: 80.14 kB / 351.9 MB, free: 2.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.0897, allocations: 27.64 kB / 351.9 MB, free: 2.098 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-05/0.08974, allocations: 25.72 kB / 351.9 MB, free: 2.066 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08984, allocations: 314.8 kB / 352.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.178e-05/0.08989, allocations: 31.98 kB / 352.3 MB, free: 1.719 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.554e-05/0.08993, allocations: 40.03 kB / 352.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.09004, allocations: 132.4 kB / 352.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.09005, allocations: 3.984 kB / 352.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001661/0.09022, allocations: 183.1 kB / 352.6 MB, free: 1.34 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.09027, allocations: 29.7 kB / 352.7 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.09028, allocations: 3.984 kB / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/0.09029, allocations: 0 / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.659e-05/0.09031, allocations: 4 kB / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.09032, allocations: 320 / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.091e-05/0.09034, allocations: 3.984 kB / 352.7 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.09036, allocations: 8 kB / 352.7 MB, free: 1.285 MB / 286.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: 8 ($outputAlias_success4,success4,$outputAlias_success3,success3,$outputAlias_success2,success2,$outputAlias_success1,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.09045, allocations: 151.4 kB / 352.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.09048, allocations: 4 kB / 352.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.022e-05/0.09051, allocations: 16.36 kB / 352.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.09051, allocations: 0 / 352.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.09052, allocations: 0 / 352.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.09053, allocations: 0 / 352.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.09091, allocations: 448 kB / 353.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.09093, allocations: 4 kB / 353.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-06/0.09094, allocations: 4 kB / 353.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.09095, allocations: 0 / 353.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.09096, allocations: 4 kB / 353.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.09097, allocations: 4 kB / 353.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.09097, allocations: 0 / 353.3 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.0912, allocations: 285.1 kB / 353.6 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-05/0.09125, allocations: 85.02 kB / 353.7 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.09127, allocations: 0 / 353.7 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.399e-05/0.09132, allocations: 8 kB / 353.7 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.09134, allocations: 3.984 kB / 353.7 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.09136, allocations: 8 kB / 353.7 MB, free: 164 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.525e-05/0.09142, allocations: 87.53 kB / 353.8 MB, free: 76 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09142, allocations: 0 / 353.8 MB, free: 76 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000223/0.09165, allocations: 19.98 kB / 353.8 MB, free: 56 kB / 286.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: 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 (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.0007952/0.09245, allocations: 0.9007 MB / 354.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.09264, allocations: 143.3 kB / 354.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.09265, allocations: 0 / 354.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.423e-05/0.09273, allocations: 107.4 kB / 354.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.09294, allocations: 8 kB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.0942, allocations: 1.568 MB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.09444, allocations: 0.6848 MB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.175e-05/0.09446, allocations: 0 / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.304e-05/0.09449, allocations: 11.44 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.0945, allocations: 4 kB / 357.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01095/0.1055, allocations: 1.722 MB / 358.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.1057, allocations: 242.3 kB / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/1.812, allocations: 0 / 359.2 MB, free: 10.61 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches