Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002/0.002, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002158/0.002158, allocations: 211.8 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002116/0.002116, allocations: 51.92 kB / 377.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2776, allocations: 53.37 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001581/0.2792, allocations: 490.5 kB / 431.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000266/0.2795, allocations: 67.02 kB / 431.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.23e-05/0.2795, allocations: 0 / 431.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.881e-05/0.2795, allocations: 0 / 431.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.94e-05/0.2796, allocations: 11.98 kB / 431.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001662/0.2798, allocations: 23.91 kB / 431.7 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.627e-05/0.2799, allocations: 19.98 kB / 431.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.511e-05/0.2799, allocations: 4 kB / 431.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.398e-05/0.28, allocations: 19.91 kB / 431.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.092e-05/0.28, allocations: 23.98 kB / 431.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.28, allocations: 0 / 431.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.83e-05/0.2801, allocations: 11.98 kB / 431.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.183e-05/0.2801, allocations: 0 / 431.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.403e-05/0.2802, allocations: 15.81 kB / 431.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2803, allocations: 25.66 kB / 431.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2803, allocations: 0 / 431.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2803, allocations: 0 / 431.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2803, allocations: 11.94 kB / 431.8 MB, free: 6.133 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.0003901/0.2807, allocations: 287.9 kB / 432.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.2807, allocations: 8.031 kB / 432.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.69e-05/0.2808, allocations: 42.69 kB / 432.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.2808, allocations: 0.9375 kB / 432.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.281, allocations: 114.5 kB / 432.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.281, allocations: 4.375 kB / 432.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.281, allocations: 384 / 432.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.2811, allocations: 74.23 kB / 432.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.2811, allocations: 7.938 kB / 432.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.2811, allocations: 3.938 kB / 432.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.2812, allocations: 0 / 432.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.29e-05/0.2812, allocations: 31.98 kB / 432.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002749/0.2815, allocations: 223.9 kB / 432.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.2816, allocations: 70.42 kB / 432.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.32e-05/0.2817, allocations: 44.91 kB / 432.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.2817, allocations: 0 / 432.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/0.2817, allocations: 72.23 kB / 432.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.22e-07/0.2817, allocations: 0 / 432.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003606/0.2821, allocations: 207.5 kB / 433 MB, free: 4.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.2821, allocations: 77.11 kB / 433.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.2823, allocations: 117.8 kB / 433.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.2823, allocations: 29.64 kB / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.2823, allocations: 80.14 kB / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.2823, allocations: 24.05 kB / 433.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.2824, allocations: 25.66 kB / 433.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2825, allocations: 322.8 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.29e-05/0.2826, allocations: 27.98 kB / 433.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.246e-05/0.2826, allocations: 39.95 kB / 433.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.2828, allocations: 132.2 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2828, allocations: 0 / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000196/0.283, allocations: 175.2 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.283, allocations: 29.7 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.283, allocations: 8 kB / 434.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.283, allocations: 3.984 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.985e-05/0.2831, allocations: 3.938 kB / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.2831, allocations: 0 / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.337e-05/0.2831, allocations: 4 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2831, allocations: 4 kB / 434.1 MB, free: 3.637 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.0001174/0.2832, allocations: 151.5 kB / 434.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.2832, allocations: 3.953 kB / 434.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.668e-05/0.2833, allocations: 12.38 kB / 434.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2833, allocations: 4 kB / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2833, allocations: 0 / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.2833, allocations: 0 / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004816/0.2838, allocations: 415.2 kB / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2838, allocations: 0.5 kB / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.2838, allocations: 0 / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2838, allocations: 0 / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.2838, allocations: 8 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.2838, allocations: 4 kB / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2838, allocations: 0 / 434.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.2841, allocations: 297.1 kB / 434.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.677e-06/0.2841, allocations: 3.953 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.2841, allocations: 4 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.644e-05/0.2841, allocations: 7.938 kB / 435 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.2842, allocations: 11.92 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-06/0.2842, allocations: 0 / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.908e-05/0.2842, allocations: 95.27 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2842, allocations: 0 / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000228/0.2845, allocations: 16 kB / 435.1 MB, free: 2.527 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.001006/0.2855, allocations: 0.8986 MB / 436 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002569/0.2857, allocations: 147.4 kB / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2857, allocations: 0 / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.569e-05/0.2858, allocations: 95.39 kB / 436.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.2861, allocations: 6.578 kB / 436.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.2878, allocations: 1.554 MB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.2881, allocations: 0.6923 MB / 438.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.794e-05/0.2881, allocations: 4 kB / 438.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.2882, allocations: 15.42 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2882, allocations: 0 / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.3165, allocations: 2.063 MB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.15, allocations: 4.062 kB / 440.6 MB, free: 13.02 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.74034474400105]