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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 184.2 kB / 23.71 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 43.94 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2492, allocations: 52.18 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001584/0.2508, allocations: 0.5074 MB / 423.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002571/0.2511, allocations: 51.81 kB / 423.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.354e-05/0.2511, allocations: 0 / 423.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.94e-05/0.2511, allocations: 3.984 kB / 423.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.086e-05/0.2512, allocations: 15.97 kB / 423.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.2514, allocations: 15.94 kB / 423.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.282e-05/0.2515, allocations: 27.95 kB / 423.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.2515, allocations: 0 / 423.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.034e-05/0.2515, allocations: 12 kB / 423.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.607e-05/0.2516, allocations: 31.89 kB / 423.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.2516, allocations: 0 / 423.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.469e-05/0.2517, allocations: 12 kB / 423.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.2517, allocations: 3.984 kB / 423.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.2517, allocations: 11.88 kB / 423.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.2518, allocations: 27.91 kB / 423.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2518, allocations: 0 / 423.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.2518, allocations: 4 kB / 423.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.2518, allocations: 0 / 423.3 MB, free: 13.92 MB / 334.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.0003635/0.2522, allocations: 296.3 kB / 423.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2522, allocations: 8.031 kB / 423.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.808e-05/0.2523, allocations: 38.73 kB / 423.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.2523, allocations: 4.891 kB / 423.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.2524, allocations: 110.5 kB / 423.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-06/0.2525, allocations: 4.375 kB / 423.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.2525, allocations: 4.375 kB / 423.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.2526, allocations: 74.17 kB / 423.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.2526, allocations: 3.938 kB / 423.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.2526, allocations: 7.938 kB / 423.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.2526, allocations: 0 / 423.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.024e-05/0.2527, allocations: 39.92 kB / 423.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002569/0.2529, allocations: 212 kB / 424.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.925e-05/0.253, allocations: 74.42 kB / 424.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.18e-05/0.2531, allocations: 45.06 kB / 424.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-06/0.2531, allocations: 0 / 424.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.2532, allocations: 64.25 kB / 424.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.2532, allocations: 0 / 424.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003476/0.2535, allocations: 215.3 kB / 424.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.2536, allocations: 77.11 kB / 424.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.685e-05/0.2537, allocations: 113.8 kB / 424.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.2537, allocations: 29.7 kB / 424.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.247e-05/0.2537, allocations: 80.14 kB / 424.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.2537, allocations: 15.91 kB / 424.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.2538, allocations: 33.64 kB / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2539, allocations: 314.8 kB / 425.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.457e-05/0.254, allocations: 31.98 kB / 425.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.029e-05/0.254, allocations: 35.97 kB / 425.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.2542, allocations: 124.2 kB / 425.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2542, allocations: 3.984 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001939/0.2544, allocations: 179.7 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.948e-05/0.2544, allocations: 37.64 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2544, allocations: 0 / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2545, allocations: 4 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.866e-05/0.2545, allocations: 3.938 kB / 425.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2545, allocations: 4 kB / 425.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.2545, allocations: 7.984 kB / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.2545, allocations: 0 / 425.6 MB, free: 11.42 MB / 334.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.0001065/0.2546, allocations: 151.5 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.2546, allocations: 3.953 kB / 425.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.2547, allocations: 16.36 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2547, allocations: 0 / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2547, allocations: 4 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2547, allocations: 0 / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.2551, allocations: 411.5 kB / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2551, allocations: 0 / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.2551, allocations: 0 / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.2551, allocations: 0 / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2551, allocations: 11.97 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2551, allocations: 3.938 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2551, allocations: 0 / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002712/0.2554, allocations: 301.1 kB / 426.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.03e-05/0.2554, allocations: 7.953 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.2554, allocations: 4 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.396e-05/0.2554, allocations: 0 / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.2555, allocations: 15.92 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.2555, allocations: 4 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.871e-05/0.2555, allocations: 83.28 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2555, allocations: 0 / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002317/0.2557, allocations: 19.98 kB / 426.6 MB, free: 10.31 MB / 334.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.0008206/0.2566, allocations: 0.9039 MB / 427.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.2568, allocations: 143.3 kB / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2568, allocations: 0 / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.7e-05/0.2569, allocations: 99.38 kB / 427.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.2571, allocations: 4 kB / 427.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.2585, allocations: 1.553 MB / 429.3 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.2589, allocations: 0.6844 MB / 430 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.439e-05/0.2589, allocations: 7.984 kB / 430 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.2589, allocations: 15.38 kB / 430 MB, free: 6.754 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2589, allocations: 0 / 430 MB, free: 6.754 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.2864, allocations: 2.056 MB / 432 MB, free: 4.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.96, allocations: 4.062 kB / 432 MB, free: 4.809 MB / 334.1 MB " [Timeout remaining time 649] (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 1.9992e-05 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.497306427001604]