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.0008264/0.0008264, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000819/0.000819, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8792/0.8792, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 1.523e-06/1.523e-06, allocations: 0 / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.061e-05/1.213e-05, allocations: 2.281 kB / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001313/0.001326, allocations: 478 kB / 318.9 MB, free: 5.926 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002389/0.001564, allocations: 56.2 kB / 318.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.206e-05/0.001596, allocations: 4 kB / 318.9 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.511e-05/0.001632, allocations: 7.938 kB / 318.9 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.233e-05/0.001724, allocations: 15.92 kB / 318.9 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.001901, allocations: 23.91 kB / 319 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.002013, allocations: 19.97 kB / 319 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.558e-05/0.002059, allocations: 8 kB / 319 MB, free: 5.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.936e-05/0.002108, allocations: 15.98 kB / 319 MB, free: 5.777 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.854e-05/0.002187, allocations: 23.97 kB / 319 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.002204, allocations: 0 / 319 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.578e-05/0.00225, allocations: 7.938 kB / 319 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.762e-05/0.002297, allocations: 15.92 kB / 319.1 MB, free: 5.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.002327, allocations: 4 kB / 319.1 MB, free: 5.727 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.002434, allocations: 23.97 kB / 319.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.002436, allocations: 0 / 319.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.002437, allocations: 0 / 319.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.002441, allocations: 0 / 319.1 MB, free: 5.703 MB / 282.7 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.0003247/0.002765, allocations: 295.9 kB / 319.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.002806, allocations: 8.922 kB / 319.4 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.00287, allocations: 46.64 kB / 319.4 MB, free: 5.312 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.002901, allocations: 4.938 kB / 319.4 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.19e-05/0.002993, allocations: 121.7 kB / 319.6 MB, free: 5.164 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.003008, allocations: 8.375 kB / 319.6 MB, free: 5.156 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.003017, allocations: 384 / 319.6 MB, free: 5.156 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.003166, allocations: 99.94 kB / 319.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.003175, allocations: 192 / 319.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.003184, allocations: 384 / 319.7 MB, free: 5.047 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.003191, allocations: 8.125 kB / 319.7 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.118e-05/0.003252, allocations: 53.69 kB / 319.7 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002433/0.003496, allocations: 220 kB / 319.9 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.003604, allocations: 88.27 kB / 320 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.234e-05/0.003676, allocations: 74.59 kB / 320.1 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.003686, allocations: 0 / 320.1 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.003731, allocations: 72.2 kB / 320.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.003732, allocations: 0 / 320.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003725/0.004105, allocations: 278.8 kB / 320.4 MB, free: 4.156 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.004149, allocations: 77.11 kB / 320.5 MB, free: 4.062 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.582e-05/0.004225, allocations: 109.8 kB / 320.6 MB, free: 3.945 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.00424, allocations: 29.7 kB / 320.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.004279, allocations: 88.12 kB / 320.7 MB, free: 3.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.004307, allocations: 19.8 kB / 320.8 MB, free: 3.801 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/0.004349, allocations: 21.72 kB / 320.8 MB, free: 3.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.004446, allocations: 318.8 kB / 321.1 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.525e-05/0.004501, allocations: 65.69 kB / 321.2 MB, free: 3.383 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.003e-05/0.004551, allocations: 65.86 kB / 321.2 MB, free: 3.312 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.004664, allocations: 136.2 kB / 321.3 MB, free: 3.164 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.004666, allocations: 0 / 321.3 MB, free: 3.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002027/0.004868, allocations: 204.9 kB / 321.5 MB, free: 2.945 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.004904, allocations: 37.64 kB / 321.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.00491, allocations: 0 / 321.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.004924, allocations: 4 kB / 321.6 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.898e-05/0.004943, allocations: 3.984 kB / 321.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.004948, allocations: 0 / 321.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.441e-05/0.004972, allocations: 4 kB / 321.6 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.004983, allocations: 4 kB / 321.6 MB, free: 2.887 MB / 282.7 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.0001076/0.00509, allocations: 155 kB / 321.8 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.00512, allocations: 7.891 kB / 321.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.208e-05/0.005142, allocations: 8.438 kB / 321.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.005144, allocations: 0 / 321.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.00515, allocations: 448 / 321.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.005153, allocations: 0 / 321.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.005567, allocations: 444.9 kB / 322.2 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.005572, allocations: 7.984 kB / 322.2 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.841e-06/0.005577, allocations: 0 / 322.2 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.005582, allocations: 3.984 kB / 322.2 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.005592, allocations: 8 kB / 322.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.005594, allocations: 0 / 322.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.005595, allocations: 0 / 322.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002592/0.005855, allocations: 322.7 kB / 322.5 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.005862, allocations: 4 kB / 322.5 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.005878, allocations: 0 / 322.5 MB, free: 1.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.076e-05/0.005928, allocations: 8 kB / 322.5 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/0.00595, allocations: 7.922 kB / 322.6 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.005961, allocations: 7.984 kB / 322.6 MB, free: 1.812 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.006007, allocations: 91.27 kB / 322.7 MB, free: 1.723 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.006007, allocations: 4 kB / 322.7 MB, free: 1.719 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.006281, allocations: 12 kB / 322.7 MB, free: 1.707 MB / 282.7 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.0007745/0.007055, allocations: 0.965 MB / 323.6 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.007266, allocations: 198.8 kB / 323.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.007268, allocations: 0 / 323.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.729e-05/0.007355, allocations: 129 kB / 324 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.007593, allocations: 8 kB / 324 MB, free: 356 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.00908, allocations: 1.701 MB / 325.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.183e-05/0.009152, allocations: 75.27 kB / 325.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.63e-05/0.009169, allocations: 4 kB / 325.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.287e-05/0.009201, allocations: 12.5 kB / 325.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.009202, allocations: 0 / 325.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.02657, allocations: 2.552 MB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.939/6.966, allocations: 6.125 kB / 328.3 MB, free: 11.93 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv: Error: Error opening file: Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,success1,success2,success3,success4 Variables in the result: [Calling sys.exit(0), Time elapsed: 8.738790221512318]