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.001036/0.001036, allocations: 87.62 kB / 21.43 MB, free: 3.129 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.004444/0.004444, allocations: 166 kB / 24.7 MB, free: 9.422 MB / 18.57 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 0.8642/0.8642, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 298.4 MB, free: 3.566 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.648e-05/1.785e-05, allocations: 2.281 kB / 298.4 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000901/0.0009188, allocations: 494.9 kB / 298.9 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001845/0.001103, allocations: 67.73 kB / 299 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.001127, allocations: 0 / 299 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.001154, allocations: 7.922 kB / 299 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.845e-05/0.001222, allocations: 11.98 kB / 299 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.001366, allocations: 15.98 kB / 299 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.154e-05/0.001447, allocations: 27.95 kB / 299 MB, free: 2.949 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.001489, allocations: 0 / 299 MB, free: 2.949 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.763e-05/0.001526, allocations: 15.92 kB / 299 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.554e-05/0.001592, allocations: 27.97 kB / 299.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.001606, allocations: 4 kB / 299.1 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.001647, allocations: 11.98 kB / 299.1 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.001685, allocations: 3.938 kB / 299.1 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.001711, allocations: 7.938 kB / 299.1 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.169e-05/0.001802, allocations: 31.91 kB / 299.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.001804, allocations: 0 / 299.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.001805, allocations: 0 / 299.1 MB, free: 2.848 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.001808, allocations: 0 / 299.1 MB, free: 2.848 MB / 282.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.0002753/0.002083, allocations: 284 kB / 299.4 MB, free: 2.531 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.002118, allocations: 15.92 kB / 299.4 MB, free: 2.516 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.002167, allocations: 42.69 kB / 299.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.002191, allocations: 12.89 kB / 299.5 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.765e-05/0.002258, allocations: 109.7 kB / 299.6 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-06/0.002268, allocations: 4.375 kB / 299.6 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-06/0.002277, allocations: 4.375 kB / 299.6 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.002395, allocations: 91.94 kB / 299.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.002402, allocations: 192 / 299.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.00241, allocations: 4.375 kB / 299.7 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.002416, allocations: 4.125 kB / 299.7 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.002754, allocations: 69.61 kB / 299.7 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002107/0.002964, allocations: 216 kB / 300 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.154e-05/0.003046, allocations: 92.25 kB / 300 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.161e-05/0.003097, allocations: 82.53 kB / 300.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.003106, allocations: 0 / 300.1 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.003139, allocations: 64.14 kB / 300.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.00314, allocations: 4 kB / 300.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002696/0.00341, allocations: 271.1 kB / 300.5 MB, free: 1.309 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.003446, allocations: 81.11 kB / 300.5 MB, free: 1.211 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.003501, allocations: 109.8 kB / 300.6 MB, free: 1.094 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.003511, allocations: 25.7 kB / 300.7 MB, free: 1.062 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.976e-05/0.003541, allocations: 84.14 kB / 300.8 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.003561, allocations: 19.8 kB / 300.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.003589, allocations: 29.7 kB / 300.8 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.423e-05/0.003664, allocations: 318.8 kB / 301.1 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.739e-05/0.003701, allocations: 65.61 kB / 301.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.238e-05/0.003733, allocations: 61.98 kB / 301.2 MB, free: 476 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.505e-05/0.003809, allocations: 132.2 kB / 301.4 MB, free: 328 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.003811, allocations: 4.062 kB / 301.4 MB, free: 324 kB / 282.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001227/0.003934, allocations: 197 kB / 301.6 MB, free: 108 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.003961, allocations: 41.62 kB / 301.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.003965, allocations: 0 / 301.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.003976, allocations: 0 / 301.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-05/0.003989, allocations: 0 / 301.6 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.003993, allocations: 7.938 kB / 301.6 MB, free: 52 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.004008, allocations: 11.94 kB / 301.6 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.004015, allocations: 4 kB / 301.6 MB, free: 36 kB / 282.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 0.1217/0.1257, allocations: 144.1 kB / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.1257, allocations: 11.05 kB / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.222e-05/0.1258, allocations: 8.781 kB / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1258, allocations: 1.25 kB / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1258, allocations: 0 / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1258, allocations: 7.469 kB / 301.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003046/0.1261, allocations: 431.8 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1261, allocations: 0.8125 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-05/0.1261, allocations: 6.328 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1261, allocations: 0.8438 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.1261, allocations: 3.953 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1261, allocations: 3.312 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1261, allocations: 3.938 kB / 302.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.1263, allocations: 317.5 kB / 302.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-06/0.1263, allocations: 8.734 kB / 302.6 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.1263, allocations: 6.219 kB / 302.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.121e-05/0.1263, allocations: 2.344 kB / 302.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.1263, allocations: 3.203 kB / 302.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.1263, allocations: 7.938 kB / 302.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.447e-05/0.1264, allocations: 86.3 kB / 302.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1264, allocations: 1.469 kB / 302.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001574/0.1265, allocations: 15.78 kB / 302.7 MB, free: 14.82 MB / 282.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.0004847/0.127, allocations: 0.9706 MB / 303.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.1272, allocations: 195 kB / 303.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1272, allocations: 0 / 303.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.455e-05/0.1272, allocations: 129.5 kB / 304 MB, free: 13.84 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.1274, allocations: 4.906 kB / 304 MB, free: 13.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008106/0.1282, allocations: 1.7 MB / 305.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.239e-05/0.1282, allocations: 72.19 kB / 305.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.286e-05/0.1282, allocations: 2.266 kB / 305.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.1283, allocations: 14.41 kB / 305.8 MB, free: 12.4 MB / 282.7 MB Notification: Performance of SimCode: time 9.01e-07/0.1283, allocations: 0 / 305.8 MB, free: 12.4 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.1463, allocations: 2.566 MB / 308.3 MB, free: 11.12 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.386, allocations: 9.094 kB / 308.3 MB, free: 11.11 MB / 282.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv: Error: Error opening file: Modelica_3.2.3_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: 9.09523764345795]