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.001515/0.001515, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002328/0.002328, allocations: 208.4 kB / 23.73 MB, free: 4.387 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.64/1.64, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001641/0.001641, allocations: 47.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2539, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001593/0.2555, allocations: 492.6 kB / 431.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000259/0.2558, allocations: 63.05 kB / 431.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.507e-05/0.2558, allocations: 0 / 431.6 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.086e-05/0.2558, allocations: 3.938 kB / 431.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-05/0.2559, allocations: 15.97 kB / 431.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.256, allocations: 15.98 kB / 431.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.539e-05/0.2561, allocations: 23.92 kB / 431.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.685e-05/0.2562, allocations: 3.984 kB / 431.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.078e-05/0.2562, allocations: 11.98 kB / 431.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.278e-05/0.2563, allocations: 31.91 kB / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.2563, allocations: 0 / 431.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.163e-05/0.2563, allocations: 4 kB / 431.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.499e-05/0.2564, allocations: 11.98 kB / 431.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.2564, allocations: 7.938 kB / 431.7 MB, free: 5.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.76e-05/0.2565, allocations: 25.59 kB / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2565, allocations: 0 / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2565, allocations: 0 / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2565, 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.0003645/0.2569, allocations: 287.9 kB / 432 MB, free: 5.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2569, allocations: 12.03 kB / 432 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.129e-05/0.257, allocations: 50.69 kB / 432.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.257, allocations: 8.875 kB / 432.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.2571, allocations: 110.5 kB / 432.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.2571, allocations: 4.312 kB / 432.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.2572, allocations: 4.375 kB / 432.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.2573, allocations: 99.94 kB / 432.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2574, allocations: 3.938 kB / 432.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2574, allocations: 0 / 432.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2574, allocations: 0 / 432.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.458e-05/0.2574, allocations: 61.69 kB / 432.4 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/0.2577, allocations: 227.9 kB / 432.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.2579, allocations: 96.19 kB / 432.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.386e-05/0.258, allocations: 74.61 kB / 432.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.258, allocations: 3.938 kB / 432.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.258, allocations: 64.25 kB / 432.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.258, allocations: 0 / 432.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004124/0.2584, allocations: 274.6 kB / 433.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.2585, allocations: 85.09 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2586, allocations: 109.8 kB / 433.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.2586, allocations: 25.7 kB / 433.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.848e-05/0.2587, allocations: 88.14 kB / 433.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.2587, allocations: 20.05 kB / 433.4 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.2588, allocations: 25.7 kB / 433.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2589, allocations: 314.8 kB / 433.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.677e-05/0.259, allocations: 61.69 kB / 433.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.097e-05/0.259, allocations: 65.67 kB / 433.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.2592, allocations: 132.2 kB / 434 MB, free: 3.422 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2592, allocations: 0 / 434 MB, free: 3.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002283/0.2594, allocations: 204.9 kB / 434.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.2595, allocations: 33.69 kB / 434.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.2595, allocations: 0 / 434.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.2595, allocations: 4 kB / 434.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.095e-05/0.2595, allocations: 4 kB / 434.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2595, allocations: 3.938 kB / 434.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.2595, allocations: 4 kB / 434.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2595, allocations: 0 / 434.3 MB, free: 3.148 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.0001481/0.2597, allocations: 158 kB / 434.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.2597, allocations: 4.391 kB / 434.4 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.2597, allocations: 12.38 kB / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2597, allocations: 0 / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2598, allocations: 0 / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2598, allocations: 0 / 434.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000512/0.2603, allocations: 448.9 kB / 434.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2603, allocations: 7.938 kB / 434.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.707e-06/0.2603, allocations: 4 kB / 434.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2603, allocations: 0 / 434.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.2603, allocations: 4 kB / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2603, allocations: 0 / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2603, allocations: 3.984 kB / 434.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.2606, allocations: 326.7 kB / 435.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.13e-05/0.2606, allocations: 7.953 kB / 435.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.2607, allocations: 3.984 kB / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.639e-05/0.2607, allocations: 4 kB / 435.2 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-05/0.2607, allocations: 8 kB / 435.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.2607, allocations: 4 kB / 435.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.728e-05/0.2608, allocations: 87.27 kB / 435.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2608, allocations: 0 / 435.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.261, allocations: 16 kB / 435.3 MB, free: 1.965 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.001079/0.2621, allocations: 0.9658 MB / 436.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002714/0.2624, allocations: 202.8 kB / 436.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2624, allocations: 0 / 436.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.2625, allocations: 125.6 kB / 436.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.2627, allocations: 8 kB / 436.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.2645, allocations: 1.706 MB / 438.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.092e-05/0.2645, allocations: 71.33 kB / 438.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.335e-05/0.2646, allocations: 0 / 438.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.2646, allocations: 15.44 kB / 438.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2646, allocations: 0 / 438.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/0.2945, allocations: 2.454 MB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.34, allocations: 4.062 kB / 440.9 MB, free: 12.29 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: 14.071260715834796]