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.00169/0.00169, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.00195/0.00195, allocations: 191.8 kB / 23.7 MB, free: 4.195 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.511/1.511, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001932/0.001932, allocations: 59.91 kB / 370.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3385, allocations: 52.17 MB / 422.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002053/0.3406, allocations: 496.4 kB / 423 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000325/0.3409, allocations: 59.75 kB / 423.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.279e-05/0.3409, allocations: 0 / 423.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.677e-05/0.341, allocations: 3.938 kB / 423.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.988e-05/0.3411, allocations: 15.97 kB / 423.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.3412, allocations: 19.98 kB / 423.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.3414, allocations: 23.91 kB / 423.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.719e-05/0.3414, allocations: 7.984 kB / 423.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.119e-05/0.3415, allocations: 8 kB / 423.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.305e-05/0.3416, allocations: 35.89 kB / 423.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.3416, allocations: 4 kB / 423.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.3416, allocations: 4 kB / 423.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.726e-05/0.3417, allocations: 7.984 kB / 423.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.328e-05/0.3417, allocations: 3.938 kB / 423.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.3418, allocations: 33.59 kB / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3418, allocations: 0 / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3419, allocations: 0 / 423.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3419, allocations: 0 / 423.2 MB, free: 13.71 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.0004546/0.3423, allocations: 291.9 kB / 423.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.3424, allocations: 12.03 kB / 423.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.536e-05/0.3424, allocations: 38.73 kB / 423.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.3425, allocations: 8.891 kB / 423.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.3426, allocations: 114.4 kB / 423.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.3426, allocations: 8.375 kB / 423.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.3426, allocations: 4.375 kB / 423.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.3428, allocations: 91.94 kB / 423.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3428, allocations: 3.938 kB / 423.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3429, allocations: 4 kB / 423.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.3429, allocations: 0 / 423.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.581e-05/0.3429, allocations: 69.67 kB / 423.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003082/0.3433, allocations: 223.9 kB / 424.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.3434, allocations: 92.19 kB / 424.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.758e-05/0.3435, allocations: 74.61 kB / 424.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3435, allocations: 0 / 424.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.669e-05/0.3436, allocations: 68.19 kB / 424.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.3436, allocations: 4 kB / 424.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000437/0.344, allocations: 274.8 kB / 424.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.3441, allocations: 85.09 kB / 424.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3442, allocations: 113.8 kB / 424.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.3442, allocations: 29.64 kB / 424.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.3443, allocations: 88.14 kB / 424.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.3443, allocations: 11.91 kB / 424.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.3443, allocations: 25.7 kB / 424.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3445, allocations: 314.8 kB / 425.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.024e-05/0.3446, allocations: 61.69 kB / 425.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.215e-05/0.3447, allocations: 61.67 kB / 425.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.3448, allocations: 132.2 kB / 425.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3448, allocations: 0 / 425.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002419/0.345, allocations: 204.9 kB / 425.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.936e-05/0.3451, allocations: 33.7 kB / 425.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.3451, allocations: 7.984 kB / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3451, allocations: 0 / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.3451, allocations: 0 / 425.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.3451, allocations: 4 kB / 425.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.474e-05/0.3452, allocations: 0 / 425.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.3452, allocations: 8 kB / 425.8 MB, free: 10.9 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.0001258/0.3453, allocations: 150.7 kB / 425.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.3453, allocations: 7.953 kB / 425.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.3454, allocations: 12.38 kB / 425.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3454, allocations: 3.938 kB / 425.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3454, allocations: 0 / 425.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3454, allocations: 4.438 kB / 425.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.3459, allocations: 444.9 kB / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3459, allocations: 64 / 426.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.258e-05/0.3459, allocations: 8 kB / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3459, allocations: 0 / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.3459, allocations: 0 / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3459, allocations: 0 / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3459, allocations: 4 kB / 426.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003494/0.3463, allocations: 330.7 kB / 426.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.3463, allocations: 0 / 426.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.3463, allocations: 11.98 kB / 426.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.377e-05/0.3463, allocations: 4 kB / 426.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.3464, allocations: 4 kB / 426.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.3464, allocations: 4 kB / 426.7 MB, free: 9.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.607e-05/0.3464, allocations: 91.27 kB / 426.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3464, allocations: 3.938 kB / 426.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002432/0.3467, allocations: 12 kB / 426.8 MB, free: 9.719 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.001078/0.3477, allocations: 0.9707 MB / 427.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002599/0.348, allocations: 202.8 kB / 428 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.348, allocations: 0 / 428 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.3481, allocations: 121.1 kB / 428.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.3484, allocations: 10.91 kB / 428.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.3502, allocations: 1.703 MB / 429.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.055e-05/0.3503, allocations: 75.19 kB / 429.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.725e-05/0.3503, allocations: 0 / 429.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.3504, allocations: 11.44 kB / 429.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3504, allocations: 4 kB / 429.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03095/0.3813, allocations: 2.443 MB / 432.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.38, allocations: 10.38 kB / 432.4 MB, free: 4.055 MB / 334.1 MB " [Timeout remaining time 648] (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: 14.144910844042897]