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: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_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.00151/0.00151, allocations: 104.1 kB / 17.58 MB, free: 5.441 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.001637/0.001638, allocations: 191.9 kB / 18.51 MB, free: 4.52 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.312/1.312, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001269/0.001269, allocations: 56.14 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.08341, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001734/0.08518, allocations: 493.1 kB / 327.9 MB, free: 3.906 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002375/0.08544, allocations: 53.28 kB / 327.9 MB, free: 3.855 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.628e-05/0.08548, allocations: 0 / 327.9 MB, free: 3.855 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.577e-05/0.08554, allocations: 3.938 kB / 327.9 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.333e-05/0.08561, allocations: 15.98 kB / 327.9 MB, free: 3.836 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.08577, allocations: 27.84 kB / 327.9 MB, free: 3.809 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.4e-05/0.08586, allocations: 19.97 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.08591, allocations: 4 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.941e-05/0.08594, allocations: 19.98 kB / 328 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.09e-05/0.08601, allocations: 19.97 kB / 328 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.08603, allocations: 3.938 kB / 328 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.015e-05/0.08608, allocations: 8 kB / 328 MB, free: 3.734 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.627e-05/0.08612, allocations: 3.984 kB / 328 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.782e-05/0.08615, allocations: 11.94 kB / 328 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.93e-05/0.08625, allocations: 27.91 kB / 328.1 MB, free: 3.691 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.08626, allocations: 0 / 328.1 MB, free: 3.691 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08626, allocations: 0 / 328.1 MB, free: 3.691 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.08627, allocations: 4 kB / 328.1 MB, free: 3.688 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.0003108/0.08659, allocations: 365.4 kB / 328.4 MB, free: 3.273 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.08663, allocations: 8.031 kB / 328.4 MB, free: 3.266 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.0867, allocations: 50.58 kB / 328.5 MB, free: 3.207 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.08673, allocations: 4.844 kB / 328.5 MB, free: 3.203 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.08684, allocations: 164.4 kB / 328.6 MB, free: 3.004 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-06/0.08685, allocations: 384 / 328.6 MB, free: 3.004 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.08687, allocations: 4.375 kB / 328.7 MB, free: 3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.08699, allocations: 70.22 kB / 328.7 MB, free: 2.926 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.08701, allocations: 3.938 kB / 328.7 MB, free: 2.922 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.08703, allocations: 8 kB / 328.7 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.08703, allocations: 0 / 328.7 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.644e-05/0.08708, allocations: 31.98 kB / 328.8 MB, free: 2.883 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002255/0.08732, allocations: 252.8 kB / 329 MB, free: 2.586 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.063e-05/0.08742, allocations: 70.48 kB / 329.1 MB, free: 2.508 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.845e-05/0.08748, allocations: 52.91 kB / 329.1 MB, free: 2.453 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.0875, allocations: 4 kB / 329.1 MB, free: 2.449 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.08754, allocations: 60.2 kB / 329.2 MB, free: 2.375 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 2.975e-06/0.08755, allocations: 0 / 329.2 MB, free: 2.375 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003019/0.08786, allocations: 215.4 kB / 329.4 MB, free: 2.152 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.08791, allocations: 77.11 kB / 329.5 MB, free: 2.059 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.182e-05/0.08799, allocations: 113.8 kB / 329.6 MB, free: 1.938 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.08801, allocations: 29.7 kB / 329.6 MB, free: 1.902 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.08805, allocations: 84.08 kB / 329.7 MB, free: 1.816 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.08808, allocations: 27.7 kB / 329.7 MB, free: 1.789 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.08812, allocations: 21.72 kB / 329.8 MB, free: 1.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 8.844e-05/0.08821, allocations: 314.8 kB / 330.1 MB, free: 1.445 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.089e-05/0.08826, allocations: 31.98 kB / 330.1 MB, free: 1.414 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.371e-05/0.0883, allocations: 39.92 kB / 330.1 MB, free: 1.375 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.08841, allocations: 132.2 kB / 330.3 MB, free: 1.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.08842, allocations: 0 / 330.3 MB, free: 1.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001704/0.08859, allocations: 171.2 kB / 330.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.08863, allocations: 37.7 kB / 330.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.08865, allocations: 0 / 330.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.08866, allocations: 0 / 330.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.895e-05/0.08869, allocations: 8.422 kB / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.0887, allocations: 0 / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.282e-05/0.08872, allocations: 3.938 kB / 330.5 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.08874, allocations: 12 kB / 330.5 MB, free: 0.9844 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: 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 9.218e-05/0.08884, allocations: 159.3 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.08888, allocations: 4 kB / 330.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.0889, allocations: 16.36 kB / 330.7 MB, free: 0.793 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.08891, allocations: 4 kB / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.08892, allocations: 0 / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.08892, allocations: 0 / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.08927, allocations: 436.1 kB / 331.1 MB, free: 308 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.08929, allocations: 0 / 331.1 MB, free: 308 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.007e-05/0.0893, allocations: 7.938 kB / 331.1 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.08931, allocations: 0 / 331.1 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.08932, allocations: 0 / 331.1 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.08933, allocations: 8 kB / 331.1 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.08933, allocations: 0 / 331.1 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.08958, allocations: 289.4 kB / 331.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.08963, allocations: 81.02 kB / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.08965, allocations: 4 kB / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.454e-05/0.0897, allocations: 0 / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.84e-05/0.08972, allocations: 7.984 kB / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.08974, allocations: 8 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.11e-05/0.08979, allocations: 91.27 kB / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08979, allocations: 0 / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000227/0.09002, allocations: 16 kB / 331.6 MB, free: 15.76 MB / 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.000658/0.09069, allocations: 0.9011 MB / 332.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001807/0.09088, allocations: 151.3 kB / 332.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.09089, allocations: 3.938 kB / 332.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.322e-05/0.09097, allocations: 107.5 kB / 332.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.09118, allocations: 8 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.09235, allocations: 1.547 MB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.09258, allocations: 0.6807 MB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.364e-05/0.0926, allocations: 8 kB / 335 MB, free: 12.19 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.593e-05/0.09263, allocations: 19.42 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of SimCode: time 4.4e-07/0.09264, allocations: 0 / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.1101, allocations: 1.838 MB / 336.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.252, allocations: 19.8 kB / 336.9 MB, free: 10.27 MB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/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