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.001373/0.001373, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001299/0.001299, allocations: 188.2 kB / 18.67 MB, free: 4.383 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.484/1.484, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001821/0.001821, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.09054, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001542/0.09212, allocations: 498.4 kB / 375.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002563/0.09239, allocations: 59.78 kB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.542e-05/0.09244, allocations: 4 kB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.193e-05/0.09248, allocations: 0 / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.172e-05/0.09257, allocations: 15.92 kB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.09273, allocations: 19.98 kB / 375.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.663e-05/0.09283, allocations: 27.91 kB / 375.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.047e-05/0.09288, allocations: 0 / 375.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.031e-05/0.09291, allocations: 11.98 kB / 375.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.479e-05/0.09299, allocations: 27.97 kB / 375.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.09301, allocations: 0 / 375.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.974e-05/0.09306, allocations: 4 kB / 375.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.327e-05/0.09311, allocations: 11.94 kB / 375.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.09314, allocations: 11.88 kB / 375.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.09325, allocations: 27.91 kB / 375.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.09326, allocations: 0 / 375.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.09327, allocations: 0 / 375.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.09328, allocations: 0 / 375.3 MB, free: 4.406 MB / 318.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.0004266/0.09371, allocations: 365.1 kB / 375.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.09375, allocations: 8.031 kB / 375.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.305e-05/0.09382, allocations: 42.64 kB / 375.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.09386, allocations: 8.891 kB / 375.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.09403, allocations: 172.4 kB / 375.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.09405, allocations: 4.375 kB / 375.9 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.09406, allocations: 384 / 375.9 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.09421, allocations: 70.23 kB / 376 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.09423, allocations: 3.938 kB / 376 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.09425, allocations: 7.875 kB / 376 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.09426, allocations: 0 / 376 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.472e-05/0.09433, allocations: 35.98 kB / 376 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003168/0.09465, allocations: 252.9 kB / 376.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.09477, allocations: 70.44 kB / 376.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.09485, allocations: 56.89 kB / 376.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-06/0.09487, allocations: 0 / 376.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.206e-05/0.09493, allocations: 64.27 kB / 376.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.09494, allocations: 0 / 376.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003779/0.09532, allocations: 199.3 kB / 376.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.0954, allocations: 85.09 kB / 376.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.09552, allocations: 113.8 kB / 376.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.09554, allocations: 25.7 kB / 376.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.869e-05/0.09561, allocations: 84.14 kB / 377 MB, free: 2.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.09565, allocations: 27.73 kB / 377 MB, free: 2.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/0.09571, allocations: 29.64 kB / 377 MB, free: 2.473 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.09589, allocations: 314.8 kB / 377.3 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.009e-05/0.09594, allocations: 31.98 kB / 377.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.983e-05/0.09599, allocations: 28.14 kB / 377.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.09614, allocations: 140.2 kB / 377.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.09615, allocations: 384 / 377.5 MB, free: 1.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002058/0.09636, allocations: 175.6 kB / 377.7 MB, free: 1.762 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/0.09643, allocations: 37.69 kB / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.09644, allocations: 0 / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.09646, allocations: 64 / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.358e-05/0.09649, allocations: 7.938 kB / 377.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.0965, allocations: 3.984 kB / 377.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.09653, allocations: 4 kB / 377.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.09654, allocations: 3.984 kB / 377.7 MB, free: 1.699 MB / 318.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 0.0001294/0.09668, allocations: 163.4 kB / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.09671, allocations: 3.953 kB / 377.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.392e-05/0.09675, allocations: 12.38 kB / 377.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.09675, allocations: 0 / 377.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.09676, allocations: 0 / 377.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.09677, allocations: 7.922 kB / 377.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004684/0.09725, allocations: 440.1 kB / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.09726, allocations: 0 / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.561e-06/0.09727, allocations: 4 kB / 378.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.09728, allocations: 0 / 378.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.0973, allocations: 7.984 kB / 378.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.0973, allocations: 0 / 378.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.09731, allocations: 0 / 378.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.09763, allocations: 293 kB / 378.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.109e-05/0.0977, allocations: 81.11 kB / 378.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.09772, allocations: 0 / 378.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.442e-05/0.09777, allocations: 4 kB / 378.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.09781, allocations: 7.938 kB / 378.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.09782, allocations: 4 kB / 378.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.613e-05/0.0979, allocations: 91.27 kB / 378.8 MB, free: 496 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09791, allocations: 0 / 378.8 MB, free: 496 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.09815, allocations: 12 kB / 378.8 MB, free: 484 kB / 318.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.1701/0.2683, allocations: 0.8983 MB / 379.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002346/0.2685, allocations: 145.1 kB / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2686, allocations: 0 / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.427e-05/0.2686, allocations: 110.7 kB / 380 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.2689, allocations: 17.84 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.2702, allocations: 1.548 MB / 381.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.2703, allocations: 0.6857 MB / 382.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.305e-05/0.2703, allocations: 2.453 kB / 382.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.815e-05/0.2703, allocations: 16.03 kB / 382.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2704, allocations: 0 / 382.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.2943, allocations: 1.908 MB / 384.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.966/8.26, allocations: 9.016 kB / 384.2 MB, free: 9.828 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 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.csv","/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