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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001021, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 42.33 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1348, allocations: 49.44 MB / 350.1 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002682/0.1376, allocations: 498.3 kB / 350.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003421/0.1379, allocations: 55.8 kB / 350.7 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.331e-05/0.138, allocations: 4 kB / 350.7 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.803e-05/0.1381, allocations: 4 kB / 350.7 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.126e-05/0.1381, allocations: 19.91 kB / 350.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001956/0.1383, allocations: 15.97 kB / 350.7 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.1385, allocations: 23.98 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.749e-05/0.1385, allocations: 4 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.488e-05/0.1386, allocations: 11.98 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.007e-05/0.1387, allocations: 27.91 kB / 350.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.1387, allocations: 0 / 350.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.116e-05/0.1388, allocations: 11.94 kB / 350.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-05/0.1388, allocations: 7.984 kB / 350.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.535e-05/0.1389, allocations: 7.938 kB / 350.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.139, allocations: 35.91 kB / 350.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.139, allocations: 0 / 350.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.139, allocations: 0 / 350.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.139, allocations: 0 / 350.9 MB, free: 3.617 MB / 286.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.0004278/0.1395, allocations: 357.5 kB / 351.2 MB, free: 3.211 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1395, allocations: 8.031 kB / 351.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.3e-05/0.1396, allocations: 50.56 kB / 351.3 MB, free: 3.145 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.1396, allocations: 4.844 kB / 351.3 MB, free: 3.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.1398, allocations: 164.4 kB / 351.4 MB, free: 2.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1398, allocations: 4.375 kB / 351.4 MB, free: 2.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.1399, allocations: 8.375 kB / 351.4 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.1401, allocations: 70.17 kB / 351.5 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1401, allocations: 7.938 kB / 351.5 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.1401, allocations: 0 / 351.5 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1401, allocations: 0 / 351.5 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.024e-05/0.1402, allocations: 31.92 kB / 351.5 MB, free: 2.816 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.1406, allocations: 256.8 kB / 351.8 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.1407, allocations: 74.42 kB / 351.9 MB, free: 2.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.71e-05/0.1408, allocations: 52.91 kB / 351.9 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.1408, allocations: 0 / 351.9 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.101e-05/0.1409, allocations: 60.27 kB / 352 MB, free: 2.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.1409, allocations: 0 / 352 MB, free: 2.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000439/0.1414, allocations: 211.3 kB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.1414, allocations: 77.11 kB / 352.3 MB, free: 1.992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.1416, allocations: 129.7 kB / 352.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.1416, allocations: 25.7 kB / 352.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1417, allocations: 84.14 kB / 352.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.1417, allocations: 19.66 kB / 352.5 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.1417, allocations: 25.7 kB / 352.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1419, allocations: 314.8 kB / 352.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.046e-05/0.142, allocations: 31.98 kB / 352.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.335e-05/0.142, allocations: 35.97 kB / 352.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.1421, allocations: 132.2 kB / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1421, allocations: 0 / 353 MB, free: 1.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001997/0.1423, allocations: 179.3 kB / 353.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.1424, allocations: 37.64 kB / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1424, allocations: 0 / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.1424, allocations: 4 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-05/0.1425, allocations: 3.938 kB / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1425, allocations: 0 / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.217e-05/0.1425, allocations: 0 / 353.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1425, allocations: 7.984 kB / 353.3 MB, free: 0.9141 MB / 286.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.0001173/0.1426, allocations: 151.5 kB / 353.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.1427, allocations: 4 kB / 353.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.521e-05/0.1427, allocations: 12.36 kB / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1427, allocations: 0 / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1427, allocations: 0 / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1427, allocations: 0 / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004267/0.1432, allocations: 448.3 kB / 353.9 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1432, allocations: 4 kB / 353.9 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-06/0.1432, allocations: 4 kB / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1432, allocations: 0 / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1432, allocations: 4 kB / 353.9 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1432, allocations: 3.984 kB / 353.9 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1432, allocations: 0 / 353.9 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.1435, allocations: 281.1 kB / 354.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.1436, allocations: 89.52 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.1436, allocations: 4 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.83e-05/0.1437, allocations: 11.98 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.1437, allocations: 3.984 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.1437, allocations: 8 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.572e-05/0.1438, allocations: 87.28 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1438, allocations: 0 / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.144, allocations: 12 kB / 354.4 MB, free: 15.69 MB / 302.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.0009306/0.1449, allocations: 0.901 MB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002201/0.1452, allocations: 143.3 kB / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1452, allocations: 0 / 355.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.79e-05/0.1453, allocations: 107.4 kB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.1455, allocations: 8 kB / 355.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.147, allocations: 1.554 MB / 357.1 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1473, allocations: 0.6846 MB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.693e-05/0.1474, allocations: 0 / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.1474, allocations: 15.38 kB / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1474, allocations: 0 / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.1669, allocations: 1.862 MB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/7.752, allocations: 8.969 kB / 359.7 MB, free: 10.35 MB / 302.1 MB (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 4e-05 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) 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) Reference file matches