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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001238/0.001238, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 51.94 kB / 328 MB, free: 3.855 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08958, allocations: 46.62 MB / 374.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001894/0.09153, allocations: 498.4 kB / 375.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002721/0.09184, allocations: 51.81 kB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.09189, allocations: 8 kB / 375.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.09195, allocations: 3.938 kB / 375.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.262e-05/0.09202, allocations: 15.97 kB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.09219, allocations: 15.98 kB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.09231, allocations: 35.84 kB / 375.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.881e-05/0.09236, allocations: 3.984 kB / 375.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.574e-05/0.0924, allocations: 8 kB / 375.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.09248, allocations: 23.95 kB / 375.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.09251, allocations: 4 kB / 375.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.364e-05/0.09255, allocations: 4 kB / 375.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.833e-05/0.09261, allocations: 15.94 kB / 375.3 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.269e-05/0.09265, allocations: 7.938 kB / 375.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.653e-05/0.09275, allocations: 23.91 kB / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.09276, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09277, allocations: 0 / 375.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.09278, allocations: 0 / 375.3 MB, free: 4.422 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.0004575/0.09324, allocations: 365.1 kB / 375.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.09329, allocations: 8.031 kB / 375.7 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.03e-05/0.09337, allocations: 46.64 kB / 375.7 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.09341, allocations: 4.891 kB / 375.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.09356, allocations: 176.3 kB / 375.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.09358, allocations: 384 / 375.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.09361, allocations: 8.312 kB / 375.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.09377, allocations: 70.23 kB / 376 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.09379, allocations: 3.938 kB / 376 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.0938, allocations: 4 kB / 376 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.09381, allocations: 3.984 kB / 376 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.967e-05/0.09387, allocations: 27.98 kB / 376 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.09416, allocations: 256.8 kB / 376.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.764e-05/0.09427, allocations: 70.5 kB / 376.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.41e-05/0.09434, allocations: 56.89 kB / 376.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.09436, allocations: 0 / 376.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.583e-05/0.09442, allocations: 60.27 kB / 376.5 MB, free: 3.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.09443, allocations: 0 / 376.5 MB, free: 3.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003414/0.09477, allocations: 207.4 kB / 376.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.09484, allocations: 85.11 kB / 376.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.35e-05/0.09494, allocations: 117.8 kB / 376.9 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.09496, allocations: 25.7 kB / 376.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.095, allocations: 80.14 kB / 377 MB, free: 2.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.09504, allocations: 23.8 kB / 377 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.09509, allocations: 29.64 kB / 377 MB, free: 2.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.09522, allocations: 314.8 kB / 377.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.229e-05/0.09527, allocations: 31.98 kB / 377.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.6e-05/0.09531, allocations: 36.36 kB / 377.4 MB, free: 2.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.09543, allocations: 128.2 kB / 377.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.09544, allocations: 0 / 377.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002055/0.09565, allocations: 187.5 kB / 377.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.0957, allocations: 33.69 kB / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.09571, allocations: 0 / 377.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.09573, allocations: 4 kB / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.772e-05/0.09575, allocations: 0 / 377.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.09577, allocations: 3.984 kB / 377.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.0958, allocations: 4 kB / 377.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.09582, allocations: 8 kB / 377.7 MB, free: 1.707 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.0001009/0.09593, allocations: 151.4 kB / 377.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.105e-05/0.09596, allocations: 7.953 kB / 377.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.09599, allocations: 12.38 kB / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.096, allocations: 0 / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.09601, allocations: 0 / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.09602, allocations: 0 / 377.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.0964, allocations: 444 kB / 378.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.09642, allocations: 0 / 378.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.233e-06/0.09643, allocations: 7.938 kB / 378.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.09644, allocations: 0 / 378.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.09646, allocations: 11.98 kB / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.09647, allocations: 0 / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.09648, allocations: 0 / 378.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.09672, allocations: 293 kB / 378.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.658e-05/0.09677, allocations: 81.11 kB / 378.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.09679, allocations: 0 / 378.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.906e-05/0.09685, allocations: 8 kB / 378.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.09688, allocations: 4 kB / 378.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.09689, allocations: 4 kB / 378.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.668e-05/0.09699, allocations: 87.27 kB / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09699, allocations: 0 / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00023/0.09723, allocations: 16 kB / 378.8 MB, free: 496 kB / 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.1544/0.2516, allocations: 0.8984 MB / 379.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000194/0.2519, allocations: 144.2 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2519, allocations: 1.156 kB / 379.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.318e-05/0.2519, allocations: 105 kB / 380 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.2522, allocations: 6.844 kB / 380 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.2533, allocations: 1.556 MB / 381.6 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.938e-05/0.2534, allocations: 0.686 MB / 382.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.259e-05/0.2534, allocations: 2.078 kB / 382.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.381e-05/0.2534, allocations: 17.41 kB / 382.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2534, allocations: 5.562 kB / 382.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.2707, allocations: 1.902 MB / 384.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.813, allocations: 13.83 kB / 384.2 MB, free: 9.848 MB / 318.1 MB (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 4e-05 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) 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) Reference file matches