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.001237/0.001238, allocations: 98.41 kB / 16.99 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001695/0.001695, allocations: 202.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003131, allocations: 4 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 51.48 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000591/0.1219, allocations: 206.1 kB / 358.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002192/0.1221, allocations: 55.83 kB / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.288e-05/0.1222, allocations: 0 / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.063e-05/0.1222, allocations: 0 / 358.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.1223, allocations: 11.98 kB / 358.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.1224, allocations: 19.97 kB / 358.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.061e-05/0.1225, allocations: 15.98 kB / 358.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.646e-05/0.1226, allocations: 3.984 kB / 358.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.946e-05/0.1226, allocations: 12 kB / 358.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.1227, allocations: 15.92 kB / 358.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.1227, allocations: 4 kB / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.977e-05/0.1227, allocations: 7.984 kB / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.1228, allocations: 0 / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.1228, allocations: 29.7 kB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.835e-05/0.1229, allocations: 23.91 kB / 358.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1229, allocations: 7.938 kB / 358.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1229, allocations: 4 kB / 358.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.1229, allocations: 0 / 358.6 MB, free: 13.38 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.0003809/0.1233, allocations: 349.3 kB / 358.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1234, allocations: 12.03 kB / 358.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.476e-05/0.1234, allocations: 50.38 kB / 359 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.1235, allocations: 11.91 kB / 359 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.1236, allocations: 159.1 kB / 359.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.1237, allocations: 4 kB / 359.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.1237, allocations: 7.953 kB / 359.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.1238, allocations: 69.67 kB / 359.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.1238, allocations: 0 / 359.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.1238, allocations: 4 kB / 359.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1239, allocations: 0 / 359.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.531e-05/0.1239, allocations: 35.92 kB / 359.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000302/0.1242, allocations: 248.9 kB / 359.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.1243, allocations: 74.48 kB / 359.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1244, allocations: 3.938 kB / 359.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.1244, allocations: 56.42 kB / 359.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.1244, allocations: 0 / 359.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003934/0.1248, allocations: 292.4 kB / 359.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.1249, allocations: 81.09 kB / 360 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.125, allocations: 109.8 kB / 360.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.125, allocations: 25.7 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.1251, allocations: 92.14 kB / 360.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.1251, allocations: 19.66 kB / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.1251, allocations: 0 / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1252, allocations: 318.8 kB / 360.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.885e-05/0.1253, allocations: 31.98 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.617e-05/0.1253, allocations: 35.92 kB / 360.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.718e-05/0.1254, allocations: 65.94 kB / 360.7 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1254, allocations: 0 / 360.7 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001743/0.1256, allocations: 171.3 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1256, allocations: 37.7 kB / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1257, allocations: 0 / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1257, allocations: 3.984 kB / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.831e-05/0.1257, allocations: 0 / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1257, allocations: 0 / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.14e-05/0.1257, allocations: 4 kB / 360.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1257, allocations: 4 kB / 360.9 MB, free: 10.76 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 0.000106/0.1259, allocations: 158 kB / 361.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.569e-05/0.1259, allocations: 15.8 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.257e-05/0.1259, allocations: 12.38 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1259, allocations: 0 / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1259, allocations: 4 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.126, allocations: 0 / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.1263, allocations: 432.2 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1264, allocations: 0.5 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.805e-06/0.1264, allocations: 3.938 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1264, allocations: 0 / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.1264, allocations: 4 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1264, allocations: 8 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1264, allocations: 0 / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.1267, allocations: 289.1 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.1267, allocations: 85.06 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1267, allocations: 0 / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.684e-05/0.1268, allocations: 7.984 kB / 361.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/0.1268, allocations: 3.938 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.1268, allocations: 11.94 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.497e-05/0.1269, allocations: 91.27 kB / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1269, allocations: 0 / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.1271, allocations: 16 kB / 362 MB, free: 9.523 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.0007993/0.1279, allocations: 0.904 MB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001899/0.1281, allocations: 147.4 kB / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1282, allocations: 0 / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.86e-05/0.1282, allocations: 103.3 kB / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.1284, allocations: 6.406 kB / 363.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007732/0.1291, allocations: 0.5707 MB / 363.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1294, allocations: 0.6887 MB / 364.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.588e-05/0.1295, allocations: 0 / 364.4 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.607e-05/0.1295, allocations: 15.44 kB / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1295, allocations: 0 / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01172/0.1412, allocations: 1.536 MB / 366 MB, free: 5.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1415, allocations: 218.6 kB / 366.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.893, allocations: 0 / 366.2 MB, free: 5.332 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