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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001371/0.001371, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000806/0.000806, allocations: 94.59 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002401, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2063, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08579/0.2921, allocations: 74.09 MB / 450 MB, free: 6.586 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.2924, allocations: 59.97 kB / 450 MB, free: 6.527 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001754/0.2941, allocations: 0.8305 MB / 450.9 MB, free: 5.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2941, allocations: 0 / 450.9 MB, free: 5.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2942, allocations: 0 / 450.9 MB, free: 5.695 MB / 330.7 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.0003156/0.2945, allocations: 368.9 kB / 451.2 MB, free: 5.281 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2945, allocations: 8.031 kB / 451.2 MB, free: 5.273 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.847e-05/0.2946, allocations: 42.47 kB / 451.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.2946, allocations: 11.91 kB / 451.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.2948, allocations: 167 kB / 451.5 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.2948, allocations: 4 kB / 451.5 MB, free: 5.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.2948, allocations: 3.953 kB / 451.5 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.295, allocations: 85.64 kB / 451.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.295, allocations: 0 / 451.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.295, allocations: 0 / 451.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.295, allocations: 0 / 451.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.349e-05/0.2951, allocations: 47.91 kB / 451.6 MB, free: 4.863 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002819/0.2954, allocations: 260.8 kB / 451.9 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.2955, allocations: 82.52 kB / 451.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.2955, allocations: 0 / 451.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.2956, allocations: 56.27 kB / 452 MB, free: 4.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.2956, allocations: 4 kB / 452 MB, free: 4.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004754/0.2961, allocations: 332.3 kB / 452.3 MB, free: 4.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.2962, allocations: 89.11 kB / 452.4 MB, free: 3.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.2962, allocations: 105 kB / 452.5 MB, free: 3.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.2963, allocations: 29.7 kB / 452.5 MB, free: 3.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.2963, allocations: 80.14 kB / 452.6 MB, free: 3.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.2964, allocations: 23.94 kB / 452.6 MB, free: 3.684 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.2964, allocations: 4 kB / 452.6 MB, free: 3.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2965, allocations: 314.8 kB / 452.9 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.096e-05/0.2966, allocations: 39.97 kB / 453 MB, free: 3.324 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.001e-05/0.2966, allocations: 47.95 kB / 453 MB, free: 3.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.891e-05/0.2967, allocations: 73.67 kB / 453.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2968, allocations: 0 / 453.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002652/0.297, allocations: 219 kB / 453.3 MB, free: 2.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.2971, allocations: 33.69 kB / 453.4 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2971, allocations: 0 / 453.4 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.2971, allocations: 4 kB / 453.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.806e-05/0.2971, allocations: 0 / 453.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2971, allocations: 0 / 453.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.2972, allocations: 0 / 453.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.2972, allocations: 8 kB / 453.4 MB, free: 2.922 MB / 330.7 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.0001099/0.2973, allocations: 151.5 kB / 453.5 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.2973, allocations: 11.86 kB / 453.5 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.2974, allocations: 12.38 kB / 453.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2974, allocations: 0 / 453.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2974, allocations: 0 / 453.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2974, allocations: 0 / 453.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.2979, allocations: 476.4 kB / 454 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2979, allocations: 4 kB / 454 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.145e-06/0.2979, allocations: 4 kB / 454 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2979, allocations: 0 / 454 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2979, allocations: 4 kB / 454 MB, free: 2.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.2979, allocations: 3.984 kB / 454 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2979, allocations: 0 / 454 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.2983, allocations: 325 kB / 454.3 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.2983, allocations: 81.06 kB / 454.4 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.2984, allocations: 4 kB / 454.4 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.57e-05/0.2984, allocations: 15.94 kB / 454.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.844e-05/0.2984, allocations: 0 / 454.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2985, allocations: 8 kB / 454.4 MB, free: 1.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.63e-05/0.2985, allocations: 91.77 kB / 454.5 MB, free: 1.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2985, allocations: 0 / 454.5 MB, free: 1.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002116/0.2987, allocations: 16 kB / 454.5 MB, free: 1.625 MB / 330.7 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.0008052/0.2995, allocations: 0.9129 MB / 455.5 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002102/0.2998, allocations: 143.4 kB / 455.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2998, allocations: 0 / 455.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.711e-05/0.2999, allocations: 103.4 kB / 455.7 MB, free: 436 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.3, allocations: 8 kB / 455.7 MB, free: 428 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007681/0.3008, allocations: 0.573 MB / 456.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.3011, allocations: 0.6848 MB / 457 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.311e-05/0.3011, allocations: 0 / 457 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.766e-05/0.3011, allocations: 15.42 kB / 457 MB, free: 15.07 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3012, allocations: 7.938 kB / 457 MB, free: 15.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01235/0.3135, allocations: 1.519 MB / 458.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.3137, allocations: 230.9 kB / 458.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.489/1.803, allocations: 0 / 458.7 MB, free: 13.31 MB / 346.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat