Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00172/0.00172, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 71.89 kB / 373 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1205, allocations: 53.36 MB / 426.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001834/0.1223, allocations: 494.9 kB / 426.8 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002958/0.1226, allocations: 63.8 kB / 426.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.381e-05/0.1227, allocations: 4 kB / 426.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.1227, allocations: 0 / 426.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.968e-05/0.1228, allocations: 19.91 kB / 426.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001864/0.123, allocations: 19.92 kB / 426.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.1231, allocations: 23.97 kB / 426.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.254e-05/0.1231, allocations: 4 kB / 426.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.598e-05/0.1232, allocations: 11.98 kB / 427 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.022e-05/0.1233, allocations: 31.91 kB / 427 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.1233, allocations: 0 / 427 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.733e-05/0.1233, allocations: 7.984 kB / 427 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.727e-05/0.1234, allocations: 4 kB / 427 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.64e-05/0.1234, allocations: 11.92 kB / 427 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.1235, allocations: 27.91 kB / 427 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1235, allocations: 0 / 427 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1235, allocations: 0 / 427 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1235, allocations: 0 / 427 MB, free: 3.965 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.0005507/0.1241, allocations: 369 kB / 427.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1241, allocations: 8.031 kB / 427.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.005e-05/0.1242, allocations: 38.7 kB / 427.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.1242, allocations: 8.891 kB / 427.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.1244, allocations: 176.3 kB / 427.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.1244, allocations: 4.375 kB / 427.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.1244, allocations: 384 / 427.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.1246, allocations: 70.23 kB / 427.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1246, allocations: 3.938 kB / 427.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.1246, allocations: 4 kB / 427.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1246, allocations: 0 / 427.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.224e-05/0.1247, allocations: 35.98 kB / 427.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003254/0.125, allocations: 248.8 kB / 428 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.1251, allocations: 62.5 kB / 428 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.369e-05/0.1252, allocations: 48.89 kB / 428.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.1252, allocations: 0 / 428.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.1253, allocations: 68.2 kB / 428.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.1253, allocations: 0 / 428.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004118/0.1257, allocations: 219.4 kB / 428.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.1257, allocations: 81.05 kB / 428.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.1258, allocations: 113.8 kB / 428.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.1259, allocations: 29.7 kB / 428.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.1259, allocations: 80.14 kB / 428.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.126, allocations: 19.86 kB / 428.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.126, allocations: 29.7 kB / 428.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1261, allocations: 310.8 kB / 429 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.976e-05/0.1262, allocations: 35.98 kB / 429.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-05/0.1262, allocations: 31.98 kB / 429.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.1264, allocations: 132.2 kB / 429.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1264, allocations: 0 / 429.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002032/0.1266, allocations: 179.7 kB / 429.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.646e-05/0.1266, allocations: 29.7 kB / 429.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1266, allocations: 4 kB / 429.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1266, allocations: 4 kB / 429.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.1266, allocations: 0 / 429.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.1266, allocations: 4 kB / 429.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.22e-05/0.1267, allocations: 7.875 kB / 429.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1267, allocations: 4 kB / 429.4 MB, free: 1.27 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.0001205/0.1268, allocations: 151.5 kB / 429.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.1268, allocations: 7.953 kB / 429.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.1269, allocations: 20.3 kB / 429.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1269, allocations: 4 kB / 429.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1269, allocations: 0 / 429.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1269, allocations: 0 / 429.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004383/0.1273, allocations: 436.5 kB / 430 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1273, allocations: 0 / 430 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.925e-06/0.1273, allocations: 3.984 kB / 430.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1273, allocations: 3.938 kB / 430.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1273, allocations: 4 kB / 430.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1273, allocations: 0 / 430.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1273, allocations: 0 / 430.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.1276, allocations: 301.1 kB / 430.4 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.1276, allocations: 77.11 kB / 430.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.1277, allocations: 4 kB / 430.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.146e-05/0.1277, allocations: 0 / 430.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.1277, allocations: 0 / 430.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.1277, allocations: 11.98 kB / 430.4 MB, free: 152 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.178e-05/0.1278, allocations: 83.28 kB / 430.5 MB, free: 68 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1278, allocations: 0 / 430.5 MB, free: 68 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.128, allocations: 23.94 kB / 430.5 MB, free: 44 kB / 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.001134/0.1292, allocations: 0.9063 MB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.1294, allocations: 143.4 kB / 431.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1294, allocations: 0 / 431.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.1295, allocations: 103.3 kB / 431.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.1298, allocations: 4 kB / 431.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.1314, allocations: 1.555 MB / 433.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1317, allocations: 0.6807 MB / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.179e-05/0.1317, allocations: 0 / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.415e-05/0.1318, allocations: 19.42 kB / 434 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1318, allocations: 0 / 434 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.1564, allocations: 1.921 MB / 435.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.849/8.006, allocations: 7.422 kB / 435.9 MB, free: 10.66 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.817244451958686]