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.001454/0.001454, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001656/0.001656, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001536/0.001536, allocations: 43.94 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2862, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001822/0.2881, allocations: 488.6 kB / 431.5 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002653/0.2883, allocations: 67.02 kB / 431.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.047e-05/0.2884, allocations: 0 / 431.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.2884, allocations: 0 / 431.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.538e-05/0.2885, allocations: 15.97 kB / 431.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.2886, allocations: 19.92 kB / 431.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.54e-05/0.2887, allocations: 27.97 kB / 431.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.979e-05/0.2887, allocations: 4 kB / 431.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.324e-05/0.2887, allocations: 7.984 kB / 431.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.2888, allocations: 27.91 kB / 431.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.2888, allocations: 0 / 431.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.728e-05/0.2888, allocations: 15.98 kB / 431.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.2889, allocations: 4 kB / 431.7 MB, free: 6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.2889, allocations: 3.938 kB / 431.7 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.289, allocations: 29.59 kB / 431.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.289, allocations: 4 kB / 431.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.289, allocations: 4 kB / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.289, allocations: 0 / 431.8 MB, free: 5.961 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.0003596/0.2894, allocations: 283.9 kB / 432 MB, free: 5.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2894, allocations: 8.031 kB / 432 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.889e-05/0.2895, allocations: 46.69 kB / 432.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.2895, allocations: 8.875 kB / 432.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.2896, allocations: 106.5 kB / 432.2 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2896, allocations: 4.375 kB / 432.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.822e-05/0.2897, allocations: 8.375 kB / 432.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.2898, allocations: 95.92 kB / 432.3 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2899, allocations: 7.938 kB / 432.3 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.2899, allocations: 4 kB / 432.3 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2899, allocations: 3.984 kB / 432.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.003e-05/0.2899, allocations: 61.69 kB / 432.4 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002532/0.2902, allocations: 219.9 kB / 432.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.2903, allocations: 92.19 kB / 432.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.319e-05/0.2904, allocations: 82.73 kB / 432.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.2904, allocations: 0 / 432.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/0.2905, allocations: 60.2 kB / 432.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.2905, allocations: 7.875 kB / 432.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000383/0.2908, allocations: 274.7 kB / 433.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.2909, allocations: 85.11 kB / 433.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.291, allocations: 109.8 kB / 433.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.291, allocations: 25.7 kB / 433.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.2911, allocations: 84.14 kB / 433.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.2911, allocations: 15.91 kB / 433.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.2911, allocations: 25.7 kB / 433.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2913, allocations: 314.8 kB / 433.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.564e-05/0.2914, allocations: 65.67 kB / 433.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.359e-05/0.2914, allocations: 57.69 kB / 433.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.2915, allocations: 136.2 kB / 434 MB, free: 3.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2915, allocations: 4 kB / 434 MB, free: 3.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002375/0.2918, allocations: 205.4 kB / 434.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.2918, allocations: 37.69 kB / 434.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2918, allocations: 0 / 434.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2918, allocations: 0 / 434.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-05/0.2919, allocations: 0 / 434.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.2919, allocations: 8 kB / 434.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.915e-05/0.2919, allocations: 3.938 kB / 434.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.2919, allocations: 4 kB / 434.3 MB, free: 3.156 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.0001301/0.292, allocations: 151.5 kB / 434.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.2921, allocations: 11.89 kB / 434.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.275e-05/0.2921, allocations: 12.38 kB / 434.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.2921, allocations: 4 kB / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2921, allocations: 3.984 kB / 434.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2921, allocations: 0 / 434.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004537/0.2925, allocations: 436.9 kB / 434.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2925, allocations: 0 / 434.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.935e-06/0.2926, allocations: 3.938 kB / 434.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2926, allocations: 4 kB / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.2926, allocations: 0 / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2926, allocations: 0 / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.2926, allocations: 7.984 kB / 434.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.2929, allocations: 327.1 kB / 435.2 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.2929, allocations: 7.938 kB / 435.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.2929, allocations: 4 kB / 435.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.404e-05/0.293, allocations: 4 kB / 435.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.137e-05/0.293, allocations: 4 kB / 435.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.293, allocations: 7.984 kB / 435.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.041e-05/0.2931, allocations: 87.28 kB / 435.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2931, allocations: 0 / 435.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000223/0.2933, allocations: 15.94 kB / 435.3 MB, free: 1.977 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.001035/0.2943, allocations: 0.9734 MB / 436.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.2946, allocations: 198.8 kB / 436.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2946, allocations: 0 / 436.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2947, allocations: 129 kB / 436.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.295, allocations: 4 kB / 436.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.2966, allocations: 1.704 MB / 438.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.766e-05/0.2967, allocations: 71.34 kB / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.089e-05/0.2967, allocations: 0 / 438.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.443e-05/0.2967, allocations: 11.44 kB / 438.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2967, allocations: 0 / 438.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3258, allocations: 2.489 MB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.5, allocations: 9.641 kB / 440.9 MB, free: 12.27 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.180157276015962]