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.001308/0.001308, allocations: 116.1 kB / 17.79 MB, free: 5.137 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.001377/0.001377, allocations: 194.8 kB / 20.73 MB, free: 2.203 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.465/1.465, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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.00158/0.00158, allocations: 47.92 kB / 365.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1011, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001724/0.1028, allocations: 482.4 kB / 418.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002732/0.1031, allocations: 75.78 kB / 418.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.1031, allocations: 0 / 418.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.838e-05/0.1032, allocations: 0 / 418.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-05/0.1032, allocations: 11.98 kB / 418.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.1034, allocations: 23.91 kB / 418.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.15e-05/0.1035, allocations: 23.97 kB / 418.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.1035, allocations: 3.938 kB / 418.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.036e-05/0.1035, allocations: 11.98 kB / 418.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.801e-05/0.1036, allocations: 19.98 kB / 418.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.1036, allocations: 0 / 418.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.561e-05/0.1037, allocations: 19.97 kB / 418.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.1037, allocations: 7.938 kB / 418.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.056e-05/0.1038, allocations: 7.938 kB / 418.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.1039, allocations: 27.91 kB / 418.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1039, allocations: 0 / 418.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1039, allocations: 0 / 418.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1039, allocations: 0 / 418.5 MB, free: 11.95 MB / 350.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.0004265/0.1043, allocations: 369 kB / 418.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.1043, allocations: 15.97 kB / 418.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.783e-05/0.1044, allocations: 38.69 kB / 418.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.1044, allocations: 8.938 kB / 418.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.1046, allocations: 168.3 kB / 419 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1046, allocations: 4.375 kB / 419 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.1046, allocations: 4.375 kB / 419.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.1047, allocations: 74.23 kB / 419.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1048, allocations: 7.922 kB / 419.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.1048, allocations: 0 / 419.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1048, allocations: 0 / 419.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.506e-05/0.1048, allocations: 39.97 kB / 419.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002838/0.1051, allocations: 248.8 kB / 419.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.1052, allocations: 66.48 kB / 419.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.1053, allocations: 48.89 kB / 419.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.1053, allocations: 0 / 419.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.1053, allocations: 56.27 kB / 419.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.1053, allocations: 0 / 419.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003663/0.1057, allocations: 223.4 kB / 419.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.1058, allocations: 85.11 kB / 419.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.994e-05/0.1059, allocations: 109.8 kB / 420 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1059, allocations: 25.7 kB / 420 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.1059, allocations: 88.12 kB / 420.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.106, allocations: 19.86 kB / 420.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.106, allocations: 25.66 kB / 420.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1061, allocations: 318.8 kB / 420.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.1062, allocations: 31.98 kB / 420.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.337e-05/0.1062, allocations: 31.98 kB / 420.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.1064, allocations: 136.2 kB / 420.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1064, allocations: 0 / 420.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002088/0.1066, allocations: 171.3 kB / 420.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.1066, allocations: 33.69 kB / 420.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1066, allocations: 0 / 420.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1066, allocations: 4 kB / 420.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.974e-05/0.1067, allocations: 0 / 420.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1067, allocations: 0 / 420.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.1067, allocations: 11.89 kB / 420.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.1067, allocations: 4 kB / 420.9 MB, free: 9.242 MB / 350.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.0001262/0.1068, allocations: 154.8 kB / 421 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.1069, allocations: 4 kB / 421 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.075e-05/0.1069, allocations: 8.375 kB / 421 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1069, allocations: 3.938 kB / 421 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1069, allocations: 0 / 421 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1069, allocations: 3.938 kB / 421 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.1074, allocations: 448.1 kB / 421.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1074, allocations: 4.5 kB / 421.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.753e-06/0.1074, allocations: 0 / 421.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1074, allocations: 0 / 421.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.1074, allocations: 11.94 kB / 421.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1074, allocations: 0 / 421.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1074, allocations: 0 / 421.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.1077, allocations: 293.1 kB / 421.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.1077, allocations: 85.05 kB / 421.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.1078, allocations: 4 kB / 421.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.453e-05/0.1078, allocations: 4 kB / 421.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.731e-05/0.1078, allocations: 4 kB / 421.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.1078, allocations: 0 / 421.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.793e-05/0.1079, allocations: 91.27 kB / 422 MB, free: 8.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1079, allocations: 0 / 422 MB, free: 8.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.1081, allocations: 15.94 kB / 422 MB, free: 8.016 MB / 350.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.0009058/0.109, allocations: 0.9135 MB / 422.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.1092, allocations: 135.4 kB / 423 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1092, allocations: 0 / 423 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.134e-05/0.1093, allocations: 103.3 kB / 423.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.1095, allocations: 6.031 kB / 423.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.111, allocations: 1.56 MB / 424.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1114, allocations: 0.6883 MB / 425.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.329e-05/0.1114, allocations: 4 kB / 425.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.1115, allocations: 15.44 kB / 425.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1115, allocations: 0 / 425.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.1376, allocations: 1.932 MB / 427.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.105, allocations: 11.78 kB / 427.3 MB, free: 2.613 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.670117493253201]