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.001237/0.001237, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.00118/0.00118, allocations: 195.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 1.439/1.439, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001807/0.001808, allocations: 56.14 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1033, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001783/0.1051, allocations: 489.1 kB / 327.8 MB, free: 3.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002778/0.1054, allocations: 53.27 kB / 327.9 MB, free: 3.859 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.605e-05/0.1055, allocations: 4 kB / 327.9 MB, free: 3.855 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.1055, allocations: 4 kB / 327.9 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.861e-05/0.1056, allocations: 27.84 kB / 327.9 MB, free: 3.824 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.1058, allocations: 11.98 kB / 327.9 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.899e-05/0.1059, allocations: 23.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.317e-05/0.1059, allocations: 3.984 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.581e-05/0.106, allocations: 19.98 kB / 328 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.839e-05/0.1061, allocations: 23.97 kB / 328 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.1061, allocations: 0 / 328 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.121e-05/0.1061, allocations: 11.88 kB / 328 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.619e-05/0.1062, allocations: 7.984 kB / 328 MB, free: 3.723 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.678e-05/0.1062, allocations: 11.94 kB / 328 MB, free: 3.711 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.912e-05/0.1063, allocations: 23.92 kB / 328.1 MB, free: 3.688 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1064, allocations: 0 / 328.1 MB, free: 3.688 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1064, allocations: 0 / 328.1 MB, free: 3.688 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1064, allocations: 0 / 328.1 MB, free: 3.688 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.0004435/0.1068, allocations: 365.4 kB / 328.4 MB, free: 3.273 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1069, allocations: 8.031 kB / 328.4 MB, free: 3.266 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.047e-05/0.1069, allocations: 50.64 kB / 328.5 MB, free: 3.207 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.107, allocations: 4.844 kB / 328.5 MB, free: 3.203 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.1071, allocations: 168.4 kB / 328.7 MB, free: 3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.1072, allocations: 384 / 328.7 MB, free: 3 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.1072, allocations: 4.375 kB / 328.7 MB, free: 2.996 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.1073, allocations: 74.17 kB / 328.7 MB, free: 2.918 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1074, allocations: 3.938 kB / 328.7 MB, free: 2.914 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.1074, allocations: 4 kB / 328.7 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1074, allocations: 0 / 328.7 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.454e-05/0.1074, allocations: 35.97 kB / 328.8 MB, free: 2.875 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003033/0.1077, allocations: 244.9 kB / 329 MB, free: 2.586 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.1079, allocations: 74.42 kB / 329.1 MB, free: 2.504 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.408e-05/0.1079, allocations: 56.89 kB / 329.1 MB, free: 2.445 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.108, allocations: 7.984 kB / 329.1 MB, free: 2.438 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.06e-05/0.108, allocations: 60.27 kB / 329.2 MB, free: 2.363 MB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.108, allocations: 0 / 329.2 MB, free: 2.363 MB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003797/0.1084, allocations: 203.5 kB / 329.4 MB, free: 2.152 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.1085, allocations: 85.05 kB / 329.5 MB, free: 2.051 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.1086, allocations: 113.8 kB / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.1087, allocations: 29.64 kB / 329.6 MB, free: 1.895 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/0.1087, allocations: 88.06 kB / 329.7 MB, free: 1.805 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.1087, allocations: 23.72 kB / 329.7 MB, free: 1.781 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.1088, allocations: 21.72 kB / 329.8 MB, free: 1.754 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1089, allocations: 318.8 kB / 330.1 MB, free: 1.434 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.269e-05/0.109, allocations: 31.98 kB / 330.1 MB, free: 1.402 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.926e-05/0.1091, allocations: 31.98 kB / 330.1 MB, free: 1.371 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.1092, allocations: 132.2 kB / 330.3 MB, free: 1.227 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1092, allocations: 0 / 330.3 MB, free: 1.227 MB / 270.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002048/0.1094, allocations: 175.2 kB / 330.4 MB, free: 1.043 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.1095, allocations: 33.69 kB / 330.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.1095, allocations: 4 kB / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1095, allocations: 4 kB / 330.5 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.208e-05/0.1095, allocations: 3.938 kB / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1096, allocations: 0 / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.269e-05/0.1096, allocations: 3.938 kB / 330.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1096, allocations: 4.312 kB / 330.5 MB, free: 0.9844 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.0001298/0.1097, allocations: 151.5 kB / 330.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.1098, allocations: 8.375 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.1098, allocations: 12.38 kB / 330.7 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1098, allocations: 4 kB / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1098, allocations: 0 / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1098, allocations: 0 / 330.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004761/0.1103, allocations: 456 kB / 331.1 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1103, allocations: 0 / 331.1 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-06/0.1103, allocations: 0 / 331.1 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1103, allocations: 0 / 331.1 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.1103, allocations: 4 kB / 331.1 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1104, allocations: 0 / 331.1 MB, free: 292 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1104, allocations: 4 kB / 331.1 MB, free: 288 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.1107, allocations: 285.2 kB / 331.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/0.1107, allocations: 88.95 kB / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.1108, allocations: 3.938 kB / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.38e-05/0.1108, allocations: 4 kB / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.1108, allocations: 0 / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.1109, allocations: 8 kB / 331.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.234e-05/0.1109, allocations: 91.27 kB / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1109, allocations: 0 / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.1112, allocations: 12 kB / 331.6 MB, free: 15.76 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.0009677/0.1121, allocations: 0.9045 MB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002344/0.1124, allocations: 147.3 kB / 332.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1124, allocations: 4 kB / 332.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.1125, allocations: 99.89 kB / 332.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.1128, allocations: 11.98 kB / 332.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.1143, allocations: 1.551 MB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1147, allocations: 0.6846 MB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.235e-05/0.1147, allocations: 8 kB / 335 MB, free: 12.19 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.1e-05/0.1148, allocations: 15.44 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1148, allocations: 3.938 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.1377, allocations: 1.838 MB / 336.9 MB, free: 10.29 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.031, allocations: 11.8 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