Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001776/0.001776, allocations: 115.5 kB / 18.45 MB, free: 4.609 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.002162/0.002162, allocations: 215.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002547/0.002547, allocations: 51.92 kB / 342.3 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1186, allocations: 49.13 MB / 391.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001616/0.1203, allocations: 495.7 kB / 391.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002516/0.1205, allocations: 55.8 kB / 391.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.877e-05/0.1205, allocations: 0 / 391.9 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.159e-05/0.1206, allocations: 4 kB / 391.9 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.424e-05/0.1206, allocations: 11.97 kB / 391.9 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.1208, allocations: 27.92 kB / 392 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.6e-05/0.1209, allocations: 19.97 kB / 392 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.1209, allocations: 7.938 kB / 392 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.176e-05/0.121, allocations: 11.98 kB / 392 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.364e-05/0.1211, allocations: 27.97 kB / 392 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.1211, allocations: 4 kB / 392 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.791e-05/0.1211, allocations: 11.92 kB / 392 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.699e-05/0.1212, allocations: 7.938 kB / 392.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.1212, allocations: 11.94 kB / 392.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.1213, allocations: 28.12 kB / 392.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1213, allocations: 0 / 392.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1213, allocations: 0 / 392.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1213, allocations: 0 / 392.1 MB, free: 8.027 MB / 318.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.0004295/0.1218, allocations: 361.1 kB / 392.4 MB, free: 7.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1218, allocations: 8.031 kB / 392.5 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.015e-05/0.1219, allocations: 50.62 kB / 392.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.1219, allocations: 8.891 kB / 392.5 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.122, allocations: 168.3 kB / 392.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.1221, allocations: 4.375 kB / 392.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.1221, allocations: 384 / 392.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.1222, allocations: 70.23 kB / 392.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1222, allocations: 3.938 kB / 392.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.1222, allocations: 0 / 392.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1222, allocations: 0 / 392.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.446e-05/0.1223, allocations: 35.92 kB / 392.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002888/0.1226, allocations: 256.9 kB / 393 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.1227, allocations: 70.55 kB / 393.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.233e-05/0.1228, allocations: 40.91 kB / 393.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.1228, allocations: 4 kB / 393.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.728e-05/0.1228, allocations: 68.19 kB / 393.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1228, allocations: 0 / 393.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003613/0.1232, allocations: 207.3 kB / 393.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.1233, allocations: 77.11 kB / 393.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1234, allocations: 113.8 kB / 393.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1234, allocations: 29.7 kB / 393.6 MB, free: 6.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.1234, allocations: 80.14 kB / 393.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.1235, allocations: 27.78 kB / 393.7 MB, free: 6.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.826e-05/0.1235, allocations: 25.66 kB / 393.8 MB, free: 6.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1237, allocations: 314.8 kB / 394.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.414e-05/0.1237, allocations: 35.98 kB / 394.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.941e-05/0.1238, allocations: 35.98 kB / 394.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.1239, allocations: 132.2 kB / 394.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1239, allocations: 0 / 394.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002064/0.1241, allocations: 179.3 kB / 394.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.1241, allocations: 29.7 kB / 394.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1241, allocations: 4.297 kB / 394.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1241, allocations: 0 / 394.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.107e-05/0.1242, allocations: 4 kB / 394.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.1242, allocations: 3.938 kB / 394.5 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.1242, allocations: 4 kB / 394.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.1242, allocations: 7.984 kB / 394.5 MB, free: 5.332 MB / 318.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.0001251/0.1243, allocations: 155.4 kB / 394.7 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.1244, allocations: 7.953 kB / 394.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.1244, allocations: 16.36 kB / 394.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1244, allocations: 0 / 394.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1244, allocations: 0 / 394.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1244, allocations: 0 / 394.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004489/0.1248, allocations: 444.5 kB / 395.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1248, allocations: 0 / 395.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.1248, allocations: 3.938 kB / 395.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1248, allocations: 0 / 395.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1249, allocations: 4 kB / 395.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1249, allocations: 0.5 kB / 395.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1249, allocations: 0 / 395.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.1251, allocations: 289.1 kB / 395.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.215e-05/0.1252, allocations: 89.05 kB / 395.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1252, allocations: 8.047 kB / 395.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.476e-05/0.1252, allocations: 4 kB / 395.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.028e-05/0.1253, allocations: 4 kB / 395.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.1253, allocations: 4 kB / 395.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.432e-05/0.1253, allocations: 87.27 kB / 395.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1253, allocations: 0 / 395.6 MB, free: 4.121 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.1256, allocations: 16 kB / 395.6 MB, free: 4.105 MB / 318.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.000896/0.1265, allocations: 0.9129 MB / 396.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001985/0.1267, allocations: 135.4 kB / 396.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1267, allocations: 0 / 396.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.142e-05/0.1267, allocations: 95.33 kB / 396.7 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.1269, allocations: 8 kB / 396.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.1284, allocations: 1.566 MB / 398.3 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.1287, allocations: 0.6846 MB / 399 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.13e-05/0.1287, allocations: 0 / 399 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.1288, allocations: 15.44 kB / 399 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1288, allocations: 0 / 399 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1531, allocations: 1.928 MB / 400.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/7.956, allocations: 19.64 kB / 401 MB, free: 14.53 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.688600081004552]