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.002022/0.002022, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.00215/0.00215, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.547/2.547, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001943/0.001944, allocations: 56.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1746, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002876/0.1775, allocations: 485.2 kB / 327.8 MB, free: 3.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003657/0.1779, allocations: 65.19 kB / 327.9 MB, free: 3.84 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.656e-05/0.178, allocations: 0 / 327.9 MB, free: 3.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.627e-05/0.178, allocations: 0 / 327.9 MB, free: 3.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.1781, allocations: 15.98 kB / 327.9 MB, free: 3.824 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.1784, allocations: 27.91 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.1785, allocations: 23.91 kB / 328 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.122e-05/0.1785, allocations: 4 kB / 328 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.636e-05/0.1786, allocations: 11.98 kB / 328 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.1787, allocations: 27.97 kB / 328 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.1787, allocations: 0 / 328 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.919e-05/0.1788, allocations: 11.94 kB / 328 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-05/0.1788, allocations: 0 / 328 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.303e-05/0.1789, allocations: 15.92 kB / 328 MB, free: 3.703 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.179, allocations: 27.91 kB / 328.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.179, allocations: 0 / 328.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.179, allocations: 0 / 328.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.179, allocations: 0 / 328.1 MB, free: 3.676 MB / 270.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.0006972/0.1797, allocations: 361.4 kB / 328.4 MB, free: 3.266 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.1798, allocations: 16.03 kB / 328.4 MB, free: 3.25 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.898e-05/0.1799, allocations: 42.59 kB / 328.5 MB, free: 3.199 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.1799, allocations: 12.83 kB / 328.5 MB, free: 3.188 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.1801, allocations: 164.4 kB / 328.7 MB, free: 2.988 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.1801, allocations: 384 / 328.7 MB, free: 2.988 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1801, allocations: 4.375 kB / 328.7 MB, free: 2.984 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.1803, allocations: 66.23 kB / 328.7 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1804, allocations: 3.938 kB / 328.7 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1804, allocations: 0 / 328.7 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.1804, allocations: 4 kB / 328.7 MB, free: 2.906 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1805, allocations: 39.92 kB / 328.8 MB, free: 2.867 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003957/0.1809, allocations: 248.8 kB / 329 MB, free: 2.574 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.1811, allocations: 66.5 kB / 329.1 MB, free: 2.5 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.289e-05/0.1812, allocations: 52.89 kB / 329.1 MB, free: 2.445 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.1812, allocations: 4 kB / 329.1 MB, free: 2.441 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.237e-05/0.1813, allocations: 64.2 kB / 329.2 MB, free: 2.363 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.1813, allocations: 0 / 329.2 MB, free: 2.363 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004641/0.1817, allocations: 211.5 kB / 329.4 MB, free: 2.145 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.058e-05/0.1818, allocations: 81.05 kB / 329.5 MB, free: 2.047 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.182, allocations: 109.8 kB / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.182, allocations: 29.7 kB / 329.6 MB, free: 1.895 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.992e-05/0.1821, allocations: 88.08 kB / 329.7 MB, free: 1.805 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.285e-05/0.1822, allocations: 23.66 kB / 329.7 MB, free: 1.781 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.1823, allocations: 29.7 kB / 329.8 MB, free: 1.746 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.1824, allocations: 310.8 kB / 330.1 MB, free: 1.434 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.103e-05/0.1825, allocations: 31.98 kB / 330.1 MB, free: 1.402 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.1826, allocations: 35.98 kB / 330.1 MB, free: 1.367 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.1827, allocations: 132.2 kB / 330.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1827, allocations: 0 / 330.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002981/0.183, allocations: 175.6 kB / 330.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.1831, allocations: 33.7 kB / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1831, allocations: 0 / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1831, allocations: 4 kB / 330.5 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.48e-05/0.1832, allocations: 4.062 kB / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1832, allocations: 4 kB / 330.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.1832, allocations: 3.938 kB / 330.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.1832, allocations: 4 kB / 330.5 MB, free: 0.9805 MB / 270.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.0001233/0.1833, allocations: 155.4 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.1834, allocations: 7.938 kB / 330.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.1836, allocations: 12.36 kB / 330.7 MB, free: 0.793 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1836, allocations: 7.984 kB / 330.7 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1836, allocations: 4 kB / 330.7 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1836, allocations: 0 / 330.7 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.1841, allocations: 436.1 kB / 331.1 MB, free: 300 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1841, allocations: 3.984 kB / 331.1 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.045e-06/0.1841, allocations: 3.938 kB / 331.1 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1841, allocations: 4 kB / 331.1 MB, free: 288 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1841, allocations: 0 / 331.1 MB, free: 288 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1841, allocations: 320 / 331.1 MB, free: 288 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.1841, allocations: 4 kB / 331.1 MB, free: 284 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.1844, allocations: 297.1 kB / 331.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.819e-05/0.1845, allocations: 81.02 kB / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.1845, allocations: 4 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.942e-05/0.1846, allocations: 0 / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.519e-05/0.1846, allocations: 7.984 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.1846, allocations: 4 kB / 331.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.1847, allocations: 87.28 kB / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1847, allocations: 4 kB / 331.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.185, allocations: 12 kB / 331.6 MB, free: 15.75 MB / 286.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.001068/0.186, allocations: 0.9008 MB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.1863, allocations: 159.3 kB / 332.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1863, allocations: 0 / 332.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.1865, allocations: 107.4 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.1869, allocations: 4 kB / 332.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.1891, allocations: 1.555 MB / 334.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.1896, allocations: 0.6807 MB / 335 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.918e-05/0.1896, allocations: 0 / 335 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.1897, allocations: 15.44 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1897, allocations: 4 kB / 335 MB, free: 12.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.2111, allocations: 1.842 MB / 336.9 MB, free: 10.28 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.27, allocations: 11.86 kB / 336.9 MB, free: 10.27 MB / 286.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