Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 210.5 kB / 18.58 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.8 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 55.19 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09842, allocations: 50.54 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0017/0.1002, allocations: 486.9 kB / 358 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002459/0.1004, allocations: 55.8 kB / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.1005, allocations: 0 / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.387e-05/0.1005, allocations: 0 / 358.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-05/0.1006, allocations: 23.92 kB / 358.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.1007, allocations: 19.97 kB / 358.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.987e-05/0.1008, allocations: 15.98 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.245e-05/0.1009, allocations: 4 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.708e-05/0.1009, allocations: 11.98 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.1e-05/0.101, allocations: 27.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.101, allocations: 0 / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.388e-05/0.101, allocations: 4 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.092e-05/0.1011, allocations: 11.92 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.1011, allocations: 11.94 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.412e-05/0.1012, allocations: 31.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1012, allocations: 0 / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1013, allocations: 0 / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1013, allocations: 0 / 358.3 MB, free: 13.34 MB / 302.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.0004461/0.1017, allocations: 361.4 kB / 358.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1018, allocations: 8.031 kB / 358.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.766e-05/0.1018, allocations: 50.58 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.1019, allocations: 8.844 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.102, allocations: 160.4 kB / 358.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.102, allocations: 4.375 kB / 358.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.102, allocations: 4.375 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.1021, allocations: 74.17 kB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.1022, allocations: 7.875 kB / 358.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1022, allocations: 4 kB / 358.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.1022, allocations: 3.984 kB / 358.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.636e-05/0.1022, allocations: 31.98 kB / 359 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.1025, allocations: 252.8 kB / 359.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.134e-05/0.1026, allocations: 78.42 kB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.335e-05/0.1027, allocations: 48.91 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.1027, allocations: 0 / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.1028, allocations: 64.25 kB / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.1028, allocations: 0 / 359.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003198/0.1031, allocations: 199.3 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.1032, allocations: 81.11 kB / 359.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.1033, allocations: 121.8 kB / 359.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1033, allocations: 25.7 kB / 359.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.1033, allocations: 84.14 kB / 359.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.1034, allocations: 27.58 kB / 359.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.1034, allocations: 21.72 kB / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1035, allocations: 322.8 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.1036, allocations: 27.98 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.196e-05/0.1036, allocations: 31.98 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.1037, allocations: 132.4 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1038, allocations: 384 / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001819/0.1039, allocations: 183.1 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.104, allocations: 33.7 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.104, allocations: 64 / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.104, allocations: 4 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.022e-05/0.104, allocations: 7.922 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.1041, allocations: 320 / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.302e-05/0.1041, allocations: 4 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.1041, allocations: 4 kB / 360.7 MB, free: 10.63 MB / 302.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.0001121/0.1042, allocations: 161.8 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.1043, allocations: 7.906 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.027e-05/0.1043, allocations: 8.375 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1043, allocations: 0 / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1043, allocations: 3.938 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1043, allocations: 0 / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.1047, allocations: 448.1 kB / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1047, allocations: 0 / 361.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.142e-06/0.1047, allocations: 4 kB / 361.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1047, allocations: 0 / 361.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.1048, allocations: 4 kB / 361.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1048, allocations: 0 / 361.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1048, allocations: 0 / 361.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.105, allocations: 289.1 kB / 361.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.1051, allocations: 81.02 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.1051, allocations: 4 kB / 361.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.393e-05/0.1051, allocations: 4 kB / 361.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.1052, allocations: 7.922 kB / 361.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.1052, allocations: 8 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.666e-05/0.1052, allocations: 87.27 kB / 361.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1052, allocations: 0 / 361.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.1055, allocations: 16 kB / 361.8 MB, free: 9.406 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.0007518/0.1063, allocations: 0.9024 MB / 362.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001966/0.1065, allocations: 155.2 kB / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1065, allocations: 3.938 kB / 362.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.412e-05/0.1066, allocations: 99.39 kB / 362.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1068, allocations: 8 kB / 363 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.1081, allocations: 1.553 MB / 364.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.1084, allocations: 0.6846 MB / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.244e-05/0.1084, allocations: 0 / 365.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.1084, allocations: 15.42 kB / 365.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1084, allocations: 0 / 365.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.1263, allocations: 1.85 MB / 367.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.245/7.372, allocations: 3.938 kB / 367.1 MB, free: 4.051 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches