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.001043/0.001043, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001054/0.001054, allocations: 181.3 kB / 17.2 MB, free: 5.914 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.417/1.417, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002514, allocations: 5.844 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 50.43 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005516/0.1016, allocations: 202 kB / 351.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002035/0.1018, allocations: 59.75 kB / 351.5 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.383e-05/0.1018, allocations: 0 / 351.5 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.1019, allocations: 4 kB / 351.5 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.416e-05/0.102, allocations: 11.97 kB / 351.5 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.1021, allocations: 12 kB / 351.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.688e-05/0.1022, allocations: 19.97 kB / 351.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.1022, allocations: 0 / 351.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.477e-05/0.1023, allocations: 19.86 kB / 351.5 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.121e-05/0.1024, allocations: 23.97 kB / 351.6 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1024, allocations: 0 / 351.6 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.468e-05/0.1024, allocations: 4 kB / 351.6 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.1025, allocations: 7.984 kB / 351.6 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.1025, allocations: 29.64 kB / 351.6 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.587e-05/0.1026, allocations: 19.98 kB / 351.6 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1026, allocations: 0 / 351.6 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1026, allocations: 0 / 351.6 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.1026, allocations: 0 / 351.6 MB, free: 11.2 MB / 286.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.0003003/0.1029, allocations: 361.2 kB / 352 MB, free: 10.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1029, allocations: 8.031 kB / 352 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.103, allocations: 42.47 kB / 352 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.103, allocations: 3.953 kB / 352 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.1032, allocations: 174.9 kB / 352.2 MB, free: 10.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.1032, allocations: 3.938 kB / 352.2 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.1032, allocations: 4 kB / 352.2 MB, free: 10.51 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.1033, allocations: 73.61 kB / 352.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.1033, allocations: 0 / 352.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.1033, allocations: 4 kB / 352.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1033, allocations: 7.953 kB / 352.3 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.437e-05/0.1034, allocations: 27.98 kB / 352.3 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000242/0.1036, allocations: 248.9 kB / 352.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.475e-05/0.1037, allocations: 66.5 kB / 352.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.1038, allocations: 0 / 352.6 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.1038, allocations: 68.25 kB / 352.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.1038, allocations: 0 / 352.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.00037/0.1042, allocations: 284.5 kB / 353 MB, free: 9.633 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1042, allocations: 77.11 kB / 353 MB, free: 9.539 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.612e-05/0.1043, allocations: 117.8 kB / 353.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1043, allocations: 29.64 kB / 353.2 MB, free: 9.379 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.603e-05/0.1044, allocations: 88.12 kB / 353.3 MB, free: 9.289 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.1044, allocations: 15.75 kB / 353.3 MB, free: 9.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.1044, allocations: 4 kB / 353.3 MB, free: 9.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1045, allocations: 318.8 kB / 353.6 MB, free: 8.949 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.1046, allocations: 31.98 kB / 353.6 MB, free: 8.918 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.131e-05/0.1046, allocations: 32.12 kB / 353.7 MB, free: 8.887 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.691e-05/0.1047, allocations: 62.62 kB / 353.7 MB, free: 8.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1047, allocations: 0 / 353.7 MB, free: 8.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001697/0.1049, allocations: 175.2 kB / 353.9 MB, free: 8.637 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.1049, allocations: 33.7 kB / 353.9 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.1049, allocations: 0 / 353.9 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.1049, allocations: 3.938 kB / 353.9 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-05/0.105, allocations: 7.953 kB / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.105, allocations: 4 kB / 354 MB, free: 8.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.056e-05/0.105, allocations: 7.938 kB / 354 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.105, allocations: 7.984 kB / 354 MB, free: 8.566 MB / 286.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 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.1051, allocations: 139.5 kB / 354.1 MB, free: 8.414 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.1051, allocations: 7.906 kB / 354.1 MB, free: 8.406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.1052, allocations: 20.34 kB / 354.1 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1052, allocations: 0 / 354.1 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1052, allocations: 4.391 kB / 354.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.1052, allocations: 0 / 354.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.1056, allocations: 436.2 kB / 354.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1056, allocations: 4.062 kB / 354.6 MB, free: 7.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.1056, allocations: 4 kB / 354.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.1056, allocations: 0 / 354.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.1056, allocations: 4 kB / 354.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.1056, allocations: 3.953 kB / 354.6 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1057, allocations: 4 kB / 354.6 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002087/0.1059, allocations: 289.4 kB / 354.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1059, allocations: 81.05 kB / 354.9 MB, free: 7.469 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.1059, allocations: 4 kB / 354.9 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.092e-05/0.106, allocations: 0 / 354.9 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.808e-05/0.106, allocations: 15.94 kB / 355 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.106, allocations: 0 / 355 MB, free: 7.449 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.962e-05/0.1061, allocations: 91.22 kB / 355.1 MB, free: 7.359 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1061, allocations: 0 / 355.1 MB, free: 7.359 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.1063, allocations: 12 kB / 355.1 MB, free: 7.348 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006392/0.107, allocations: 0.9023 MB / 356 MB, free: 6.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.1071, allocations: 147.3 kB / 356.1 MB, free: 6.273 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1071, allocations: 4 kB / 356.1 MB, free: 6.27 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.183e-05/0.1072, allocations: 103.4 kB / 356.2 MB, free: 6.156 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.1073, allocations: 7.953 kB / 356.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007146/0.1081, allocations: 0.5675 MB / 356.8 MB, free: 5.531 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.1083, allocations: 0.6927 MB / 357.5 MB, free: 4.812 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.326e-05/0.1083, allocations: 4 kB / 357.5 MB, free: 4.809 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.365e-05/0.1084, allocations: 15.38 kB / 357.5 MB, free: 4.793 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1084, allocations: 0 / 357.5 MB, free: 4.793 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01014/0.1185, allocations: 1.528 MB / 359 MB, free: 3.402 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/0.1188, allocations: 223.8 kB / 359.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/1.631, allocations: 3.938 kB / 359.3 MB, free: 3.156 MB / 286.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat