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.0008175/0.0008175, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008764/0.0008764, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8988/0.8988, allocations: 177.1 MB / 204.3 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] 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 1.964e-06/1.964e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.791e-05/2.988e-05, allocations: 4.812 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001384/0.001414, allocations: 487.6 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002655/0.001679, allocations: 58.77 kB / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.444e-05/0.001714, allocations: 0 / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.459e-05/0.001748, allocations: 3.984 kB / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.14e-05/0.00184, allocations: 15.97 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.002024, allocations: 15.94 kB / 325.1 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.002127, allocations: 31.89 kB / 325.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.002174, allocations: 4 kB / 325.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.57e-05/0.00222, allocations: 11.98 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.002296, allocations: 27.97 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.002314, allocations: 0 / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.68e-05/0.002361, allocations: 15.92 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.613e-05/0.002407, allocations: 8 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.124e-05/0.002438, allocations: 3.938 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.002545, allocations: 27.97 kB / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.002547, allocations: 0 / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.002548, allocations: 0 / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.002552, allocations: 0 / 325.2 MB, free: 15.24 MB / 298.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.0003772/0.002929, allocations: 290.9 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.002968, allocations: 12.03 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.003017, allocations: 42.62 kB / 325.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.003043, allocations: 12.89 kB / 325.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.744e-05/0.003121, allocations: 117.7 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.00313, allocations: 384 / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.003139, allocations: 4.375 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.00326, allocations: 99.92 kB / 325.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.003268, allocations: 192 / 325.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.003277, allocations: 4.375 kB / 325.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.003283, allocations: 12.05 kB / 325.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.349e-05/0.003327, allocations: 57.69 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.003551, allocations: 219.9 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.534e-05/0.003637, allocations: 92.25 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.294e-05/0.00369, allocations: 74.59 kB / 326.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.003699, allocations: 4 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.003735, allocations: 68.2 kB / 326.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.12e-07/0.003736, allocations: 0 / 326.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002951/0.004031, allocations: 274.8 kB / 326.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.004073, allocations: 81.11 kB / 326.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.622e-05/0.00414, allocations: 109.8 kB / 326.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.00415, allocations: 25.7 kB / 326.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.004185, allocations: 88.14 kB / 326.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.004211, allocations: 15.8 kB / 326.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.004241, allocations: 25.7 kB / 326.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.004479, allocations: 322.8 kB / 327.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.313e-05/0.004522, allocations: 65.67 kB / 327.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.083e-05/0.004553, allocations: 53.69 kB / 327.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.182e-05/0.004635, allocations: 132.2 kB / 327.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.004636, allocations: 0 / 327.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001495/0.004786, allocations: 204.9 kB / 327.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.876e-05/0.004825, allocations: 41.62 kB / 327.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.004831, allocations: 0 / 327.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.004848, allocations: 0 / 327.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.029e-05/0.004868, allocations: 0 / 327.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.004874, allocations: 4 kB / 327.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.004891, allocations: 8 kB / 327.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.004899, allocations: 4 kB / 327.7 MB, free: 12.43 MB / 298.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 7.779e-05/0.004977, allocations: 147.5 kB / 327.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.709e-05/0.004994, allocations: 15.89 kB / 327.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.005013, allocations: 8.875 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.005015, allocations: 3.984 kB / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.00502, allocations: 0 / 327.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.005026, allocations: 3.984 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.005306, allocations: 440.9 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.005307, allocations: 0 / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-06/0.005312, allocations: 4 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.005313, allocations: 4 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.005321, allocations: 0 / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005322, allocations: 0 / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.005325, allocations: 4 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.005499, allocations: 331 kB / 328.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.709e-06/0.005504, allocations: 0 / 328.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.005518, allocations: 4 kB / 328.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.576e-05/0.005543, allocations: 0 / 328.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-05/0.005564, allocations: 8 kB / 328.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.005572, allocations: 7.984 kB / 328.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.005605, allocations: 83.28 kB / 328.8 MB, free: 11.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005605, allocations: 4 kB / 328.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001577/0.005763, allocations: 16 kB / 328.8 MB, free: 11.26 MB / 298.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.0007199/0.006482, allocations: 0.9724 MB / 329.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002008/0.006683, allocations: 194.8 kB / 330 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.006686, allocations: 0 / 330 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.421e-05/0.00676, allocations: 129 kB / 330.1 MB, free: 9.895 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.006922, allocations: 10.61 kB / 330.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.008235, allocations: 1.701 MB / 331.8 MB, free: 8.066 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.862e-05/0.008284, allocations: 67.34 kB / 331.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.263e-05/0.008296, allocations: 0 / 331.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.795e-05/0.008324, allocations: 20.48 kB / 331.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.008325, allocations: 0 / 331.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01407/0.02239, allocations: 2.543 MB / 334.4 MB, free: 5.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/6.826, allocations: 12.12 kB / 334.4 MB, free: 5.477 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv: Error: Error opening file: Modelica_4.1.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.642248784191906]