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.001286/0.001286, allocations: 93.38 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 199.9 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.000245, allocations: 4 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1109, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005396/0.1114, allocations: 202.1 kB / 358.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002169/0.1117, allocations: 59.81 kB / 358.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.115e-05/0.1117, allocations: 0 / 358.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.389e-05/0.1117, allocations: 4 kB / 358.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.172e-05/0.1118, allocations: 11.98 kB / 358.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.112, allocations: 19.97 kB / 358.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.029e-05/0.112, allocations: 15.98 kB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.565e-05/0.1121, allocations: 0 / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.373e-05/0.1121, allocations: 15.92 kB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.021e-05/0.1122, allocations: 19.97 kB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.1123, allocations: 0 / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.727e-05/0.1123, allocations: 4 kB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.221e-05/0.1123, allocations: 7.938 kB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.564e-05/0.1124, allocations: 37.7 kB / 358.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.465e-05/0.1125, allocations: 15.98 kB / 358.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1125, allocations: 0 / 358.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1125, allocations: 0 / 358.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1125, allocations: 0 / 358.7 MB, free: 13.36 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.0003288/0.1128, allocations: 357.2 kB / 359 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1129, allocations: 8.031 kB / 359.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.113, allocations: 46.39 kB / 359.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.726e-05/0.113, allocations: 7.906 kB / 359.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.1131, allocations: 163.1 kB / 359.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1131, allocations: 8 kB / 359.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.1131, allocations: 7.953 kB / 359.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.1133, allocations: 73.61 kB / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1133, allocations: 0 / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1133, allocations: 0 / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1133, allocations: 3.938 kB / 359.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.574e-05/0.1134, allocations: 39.97 kB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002439/0.1136, allocations: 240.9 kB / 359.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.852e-05/0.1137, allocations: 70.48 kB / 359.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.961e-05/0.1138, allocations: 56.89 kB / 359.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.752e-06/0.1138, allocations: 0 / 359.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.1139, allocations: 60.27 kB / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.1139, allocations: 0 / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.000325/0.1142, allocations: 215.2 kB / 360 MB, free: 11.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.1143, allocations: 81.11 kB / 360.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.494e-05/0.1144, allocations: 110 kB / 360.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.1144, allocations: 29.7 kB / 360.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.1144, allocations: 92.11 kB / 360.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.1144, allocations: 19.66 kB / 360.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-06/0.1145, allocations: 4 kB / 360.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.1146, allocations: 314.8 kB / 360.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.1146, allocations: 39.97 kB / 360.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.113e-05/0.1146, allocations: 27.98 kB / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.1147, allocations: 65.69 kB / 360.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1147, allocations: 0 / 360.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001664/0.1149, allocations: 171.2 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.1149, allocations: 33.7 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1149, allocations: 0 / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.1149, allocations: 0 / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.158e-05/0.115, allocations: 7.938 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.115, allocations: 0 / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.367e-05/0.115, allocations: 8.422 kB / 361 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.115, allocations: 4 kB / 361 MB, free: 10.77 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 (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 8.823e-05/0.1151, allocations: 144.6 kB / 361.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.1152, allocations: 15.84 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.153e-05/0.1152, allocations: 8.375 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.1152, allocations: 7.984 kB / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1152, allocations: 4 kB / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1152, allocations: 0 / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.1156, allocations: 440.1 kB / 361.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1156, allocations: 4 kB / 361.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.79e-06/0.1156, allocations: 0 / 361.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1156, allocations: 4 kB / 361.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.1156, allocations: 4 kB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1156, allocations: 0 / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1156, allocations: 0 / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.1158, allocations: 289.1 kB / 361.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.1159, allocations: 81.05 kB / 362 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.1159, allocations: 11.94 kB / 362 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.111e-05/0.1159, allocations: 0 / 362 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.116, allocations: 11.98 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.116, allocations: 0 / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.016e-05/0.116, allocations: 87.27 kB / 362.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.445e-06/0.116, allocations: 0 / 362.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1163, allocations: 19.94 kB / 362.1 MB, free: 9.543 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 (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.0007168/0.117, allocations: 0.9047 MB / 363 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000167/0.1172, allocations: 143.7 kB / 363.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1172, allocations: 0 / 363.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.716e-05/0.1173, allocations: 107.4 kB / 363.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.1175, allocations: 14.75 kB / 363.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006989/0.1182, allocations: 0.5672 MB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.1184, allocations: 0.6926 MB / 364.5 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.643e-05/0.1185, allocations: 3.938 kB / 364.5 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.237e-05/0.1185, allocations: 19.44 kB / 364.6 MB, free: 6.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1185, allocations: 3.938 kB / 364.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.1303, allocations: 1.538 MB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003319/0.1307, allocations: 230.7 kB / 366.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/1.95, allocations: 4 kB / 366.3 MB, free: 5.32 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat