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.001282/0.001282, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.00139/0.00139, allocations: 192 kB / 18 MB, free: 5.098 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2629, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001411/0.2643, allocations: 491.9 kB / 400.7 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002426/0.2646, allocations: 63.47 kB / 400.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.2646, allocations: 0 / 400.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.493e-05/0.2646, allocations: 0 / 400.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.217e-05/0.2647, allocations: 12.45 kB / 400.8 MB, free: 8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.2649, allocations: 23.5 kB / 400.8 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.897e-05/0.265, allocations: 24.81 kB / 400.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.516e-05/0.265, allocations: 1.062 kB / 400.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.967e-05/0.265, allocations: 11.52 kB / 400.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.639e-05/0.2651, allocations: 26.03 kB / 400.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.2651, allocations: 5.094 kB / 400.8 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.2652, allocations: 9.406 kB / 400.9 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.065e-05/0.2652, allocations: 6.703 kB / 400.9 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.745e-05/0.2653, allocations: 7.906 kB / 400.9 MB, free: 7.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.349e-05/0.2654, allocations: 34.77 kB / 400.9 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2654, allocations: 5.156 kB / 400.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2654, allocations: 0 / 400.9 MB, free: 7.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.2654, allocations: 0 / 400.9 MB, free: 7.918 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.0003283/0.2657, allocations: 368.5 kB / 401.3 MB, free: 7.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2658, allocations: 13.72 kB / 401.3 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.549e-05/0.2658, allocations: 41.12 kB / 401.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.6e-05/0.2659, allocations: 3.594 kB / 401.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.266, allocations: 165.8 kB / 401.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.266, allocations: 2.812 kB / 401.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.266, allocations: 6.5 kB / 401.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.2661, allocations: 68.23 kB / 401.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2662, allocations: 3.938 kB / 401.6 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.2662, allocations: 4.906 kB / 401.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2662, allocations: 1 kB / 401.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.996e-05/0.2662, allocations: 40.8 kB / 401.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002379/0.2665, allocations: 244.7 kB / 401.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.014e-05/0.2666, allocations: 70.11 kB / 401.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.303e-05/0.2667, allocations: 59.42 kB / 402 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.2667, allocations: 1 kB / 402 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.947e-05/0.2667, allocations: 58.45 kB / 402 MB, free: 6.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.2667, allocations: 4 kB / 402 MB, free: 6.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003088/0.267, allocations: 216.3 kB / 402.3 MB, free: 6.578 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.2671, allocations: 81.11 kB / 402.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.035e-05/0.2672, allocations: 109.8 kB / 402.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.2672, allocations: 25.7 kB / 402.5 MB, free: 6.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.2672, allocations: 88.14 kB / 402.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.2673, allocations: 19.84 kB / 402.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.2673, allocations: 17.72 kB / 402.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.2674, allocations: 326.8 kB / 402.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.2675, allocations: 35.92 kB / 402.9 MB, free: 5.836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.185e-05/0.2675, allocations: 27.98 kB / 403 MB, free: 5.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.2676, allocations: 132.2 kB / 403.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2676, allocations: 4 kB / 403.1 MB, free: 5.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001746/0.2678, allocations: 167.2 kB / 403.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.2679, allocations: 37.7 kB / 403.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2679, allocations: 0 / 403.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2679, allocations: 0 / 403.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.669e-05/0.2679, allocations: 3.984 kB / 403.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2679, allocations: 7.938 kB / 403.3 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.226e-05/0.2679, allocations: 12.33 kB / 403.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.268, allocations: 4 kB / 403.3 MB, free: 5.414 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 9.843e-05/0.2681, allocations: 155.4 kB / 403.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.2681, allocations: 4 kB / 403.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.502e-05/0.2681, allocations: 4.375 kB / 403.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2681, allocations: 0 / 403.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2681, allocations: 8 kB / 403.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2681, allocations: 0 / 403.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.2685, allocations: 448.4 kB / 403.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2685, allocations: 0 / 403.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.141e-06/0.2685, allocations: 0 / 403.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2686, allocations: 4 kB / 403.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.2686, allocations: 0 / 403.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2686, allocations: 3.984 kB / 403.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2686, allocations: 0 / 403.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.2688, allocations: 289.1 kB / 404.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.2689, allocations: 85.06 kB / 404.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.2689, allocations: 4 kB / 404.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.654e-05/0.2689, allocations: 4 kB / 404.3 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.269, allocations: 7.984 kB / 404.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.269, allocations: 0 / 404.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.16e-05/0.269, allocations: 95.2 kB / 404.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.269, allocations: 4 kB / 404.4 MB, free: 4.203 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.2693, allocations: 11.94 kB / 404.4 MB, free: 4.191 MB / 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.0007559/0.27, allocations: 0.9051 MB / 405.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000185/0.2702, allocations: 151.6 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2702, allocations: 0 / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.915e-05/0.2703, allocations: 111.4 kB / 405.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.2705, allocations: 7.938 kB / 405.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2718, allocations: 1.555 MB / 407.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.2721, allocations: 0.6883 MB / 407.8 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.509e-05/0.2721, allocations: 4 kB / 407.8 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.2721, allocations: 11.44 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2721, allocations: 0 / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.2912, allocations: 1.911 MB / 409.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.872, allocations: 15.81 kB / 409.8 MB, free: 14.8 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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