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.001584/0.001584, allocations: 112 kB / 17.06 MB, free: 5.973 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.001639/0.001639, allocations: 200 kB / 18.01 MB, free: 5.047 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.546/1.546, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 51.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.303, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001915/0.3049, allocations: 472.1 kB / 400.7 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003481/0.3053, allocations: 64.09 kB / 400.7 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.283e-05/0.3054, allocations: 0 / 400.7 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.598e-05/0.3054, allocations: 0 / 400.7 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.913e-05/0.3055, allocations: 16.14 kB / 400.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.3058, allocations: 23.44 kB / 400.8 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.3059, allocations: 20.2 kB / 400.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.062e-05/0.306, allocations: 6.594 kB / 400.8 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.16e-05/0.306, allocations: 14.91 kB / 400.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.3061, allocations: 18.39 kB / 400.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.3062, allocations: 1.031 kB / 400.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.3062, allocations: 4.344 kB / 400.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.3063, allocations: 11.3 kB / 400.8 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.302e-05/0.3063, allocations: 11.91 kB / 400.9 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3065, allocations: 30.67 kB / 400.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3065, allocations: 0.9375 kB / 400.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3065, allocations: 0 / 400.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3065, allocations: 0 / 400.9 MB, free: 7.934 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.0005117/0.307, allocations: 373.4 kB / 401.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3071, allocations: 13.03 kB / 401.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.3071, allocations: 52.95 kB / 401.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.3072, allocations: 3.656 kB / 401.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.3074, allocations: 166.8 kB / 401.5 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.3074, allocations: 5.656 kB / 401.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.3074, allocations: 2.469 kB / 401.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.3076, allocations: 68.39 kB / 401.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3076, allocations: 3.938 kB / 401.6 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.3076, allocations: 4.938 kB / 401.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.3076, allocations: 1.094 kB / 401.6 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.969e-05/0.3077, allocations: 33.08 kB / 401.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003222/0.308, allocations: 252.3 kB / 401.8 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.3082, allocations: 75.17 kB / 401.9 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.51e-05/0.3082, allocations: 54.58 kB / 402 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.3083, allocations: 1.031 kB / 402 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.509e-05/0.3083, allocations: 62.58 kB / 402 MB, free: 6.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.3083, allocations: 0 / 402 MB, free: 6.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003885/0.3087, allocations: 209.8 kB / 402.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.3088, allocations: 81.11 kB / 402.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.3089, allocations: 117.8 kB / 402.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.309, allocations: 25.7 kB / 402.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.213e-05/0.309, allocations: 80.14 kB / 402.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.3091, allocations: 23.95 kB / 402.6 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.3091, allocations: 25.7 kB / 402.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3093, allocations: 318.8 kB / 402.9 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.796e-05/0.3093, allocations: 31.97 kB / 402.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.534e-05/0.3094, allocations: 39.91 kB / 403 MB, free: 5.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.3095, allocations: 128.2 kB / 403.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3095, allocations: 0 / 403.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001993/0.3097, allocations: 175.3 kB / 403.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.3098, allocations: 29.7 kB / 403.3 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3098, allocations: 4 kB / 403.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3098, allocations: 0 / 403.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.901e-05/0.3098, allocations: 0 / 403.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3098, allocations: 0 / 403.3 MB, free: 5.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.719e-05/0.3099, allocations: 11.89 kB / 403.3 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.3099, allocations: 8.422 kB / 403.3 MB, free: 5.426 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.0001252/0.31, allocations: 151.4 kB / 403.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.417e-05/0.31, allocations: 4 kB / 403.5 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.3101, allocations: 16.36 kB / 403.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3101, allocations: 0 / 403.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.3101, allocations: 7.938 kB / 403.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3101, allocations: 3.938 kB / 403.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/0.3106, allocations: 440.2 kB / 403.9 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.3107, allocations: 0 / 403.9 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.521e-06/0.3107, allocations: 3.938 kB / 403.9 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.3107, allocations: 4 kB / 403.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3107, allocations: 4 kB / 403.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3107, allocations: 0 / 403.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3107, allocations: 0 / 403.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.311, allocations: 285.1 kB / 404.2 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/0.3111, allocations: 85.06 kB / 404.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.3111, allocations: 3.984 kB / 404.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.452e-05/0.3111, allocations: 4 kB / 404.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.491e-05/0.3112, allocations: 7.984 kB / 404.3 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.3112, allocations: 8 kB / 404.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.344e-05/0.3112, allocations: 83.28 kB / 404.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3112, allocations: 0 / 404.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.3115, allocations: 19.94 kB / 404.4 MB, free: 4.199 MB / 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.001034/0.3125, allocations: 0.9144 MB / 405.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002422/0.3128, allocations: 139.4 kB / 405.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3128, allocations: 7.938 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.3129, allocations: 103.9 kB / 405.6 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.3131, allocations: 14.28 kB / 405.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.3147, allocations: 1.555 MB / 407.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.3151, allocations: 0.6883 MB / 407.8 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.528e-05/0.3151, allocations: 7.984 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.3151, allocations: 11.44 kB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3151, allocations: 4 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.3393, allocations: 1.91 MB / 409.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.165, allocations: 20.42 kB / 409.8 MB, free: 14.79 MB / 334.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