Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",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.00131/0.00131, allocations: 182.5 kB / 15.76 MB, free: 6.367 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.565/1.565, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008503/0.0008504, allocations: 94.88 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1963/0.1963, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.000276, allocations: 11.98 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.09577, allocations: 58.86 MB / 490.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.4169, allocations: 84.57 MB / 0.5614 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.4171, allocations: 63.34 kB / 0.5615 GB, free: 15.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003371/0.4205, allocations: 1.42 MB / 0.5629 GB, free: 13.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4205, allocations: 0 / 0.5629 GB, free: 13.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.4205, allocations: 0 / 0.5629 GB, free: 13.83 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003351/0.4209, allocations: 362.5 kB / 0.5632 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.4209, allocations: 8.031 kB / 0.5632 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.727e-05/0.421, allocations: 30.56 kB / 0.5633 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.421, allocations: 0.875 kB / 0.5633 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.677e-05/0.4211, allocations: 167 kB / 0.5634 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.4211, allocations: 1.5 kB / 0.5634 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.4211, allocations: 4 kB / 0.5634 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.864e-05/0.4212, allocations: 25.7 kB / 0.5634 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.4212, allocations: 4 kB / 0.5635 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.4212, allocations: 3.938 kB / 0.5635 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.4213, allocations: 4 kB / 0.5635 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.598e-05/0.4213, allocations: 7.812 kB / 0.5635 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.4214, allocations: 149.6 kB / 0.5636 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.4215, allocations: 18.61 kB / 0.5636 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-06/0.4215, allocations: 0 / 0.5636 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.4215, allocations: 61.14 kB / 0.5637 GB, free: 12.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.4215, allocations: 0 / 0.5637 GB, free: 12.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001666/0.4217, allocations: 67.28 kB / 0.5637 GB, free: 12.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.4218, allocations: 81.09 kB / 0.5638 GB, free: 12.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.097e-05/0.4218, allocations: 85 kB / 0.5639 GB, free: 12.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.4218, allocations: 25.7 kB / 0.5639 GB, free: 12.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.303e-05/0.4219, allocations: 84.12 kB / 0.564 GB, free: 12.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.4219, allocations: 4 kB / 0.564 GB, free: 12.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-06/0.4219, allocations: 128 / 0.564 GB, free: 12.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.422, allocations: 317.8 kB / 0.5643 GB, free: 12.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.422, allocations: 3.938 kB / 0.5643 GB, free: 12.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.369e-06/0.422, allocations: 0 / 0.5643 GB, free: 12.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.818e-05/0.4221, allocations: 29.7 kB / 0.5644 GB, free: 12.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.4221, allocations: 0 / 0.5644 GB, free: 12.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.431e-05/0.4222, allocations: 71.28 kB / 0.5644 GB, free: 12.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.4222, allocations: 29.7 kB / 0.5644 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.4222, allocations: 3.984 kB / 0.5645 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4222, allocations: 4.094 kB / 0.5645 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.4222, allocations: 0 / 0.5645 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.4222, allocations: 0 / 0.5645 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.294e-05/0.4223, allocations: 4 kB / 0.5645 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.4223, allocations: 7.062 kB / 0.5645 GB, free: 11.96 MB / 378.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.21e-05/0.4224, allocations: 135.5 kB / 0.5646 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.4224, allocations: 7.953 kB / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.245e-05/0.4224, allocations: 7.109 kB / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.4224, allocations: 0 / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.4224, allocations: 4 kB / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.4224, allocations: 0 / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.502e-05/0.4225, allocations: 141.7 kB / 0.5647 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4225, allocations: 0 / 0.5647 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.4225, allocations: 4 kB / 0.5648 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.4225, allocations: 3.953 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.4225, allocations: 3.984 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.4225, allocations: 0.625 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4225, allocations: 0 / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.315e-05/0.4226, allocations: 97.97 kB / 0.5649 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.4227, allocations: 77.11 kB / 0.5649 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.4227, allocations: 7.938 kB / 0.5649 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.4227, allocations: 3.938 kB / 0.5649 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.4227, allocations: 4 kB / 0.5649 GB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.4227, allocations: 0 / 0.5649 GB, free: 11.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.4228, allocations: 75.28 kB / 0.565 GB, free: 11.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4228, allocations: 0 / 0.565 GB, free: 11.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.423, allocations: 16.03 kB / 0.565 GB, free: 11.28 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0006893/0.4237, allocations: 0.7408 MB / 0.5658 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.29e-05/0.4238, allocations: 55.41 kB / 0.5658 GB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4238, allocations: 0 / 0.5658 GB, free: 10.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.92e-05/0.4238, allocations: 55.41 kB / 0.5659 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.681e-05/0.4239, allocations: 3.953 kB / 0.5659 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.4242, allocations: 122.7 kB / 0.566 GB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.4245, allocations: 0.677 MB / 0.5666 GB, free: 9.539 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.4245, allocations: 0 / 0.5666 GB, free: 9.539 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.4245, allocations: 7.438 kB / 0.5666 GB, free: 9.531 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4245, allocations: 0 / 0.5666 GB, free: 9.531 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01202/0.4365, allocations: 1.142 MB / 0.5678 GB, free: 8.422 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003325/0.4369, allocations: 206.2 kB / 0.568 GB, free: 8.184 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.534/1.971, allocations: 0 / 0.568 GB, free: 8.184 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat