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.001948/0.001948, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.769/1.769, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.001003/0.001003, allocations: 91.09 kB / 267 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4293/0.4293, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.066e-05/4.076e-05, allocations: 0 / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1448, allocations: 58.85 MB / 484.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4412/0.5861, allocations: 84.47 MB / 0.5554 GB, free: 18.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.5864, allocations: 63.17 kB / 0.5554 GB, free: 18.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003535/0.59, allocations: 1.421 MB / 0.5568 GB, free: 17.44 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.59, allocations: 1.312 kB / 0.5568 GB, free: 17.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.59, allocations: 0 / 0.5568 GB, free: 17.44 MB / 394.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.0002669/0.5903, allocations: 353.9 kB / 0.5572 GB, free: 17.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5903, allocations: 11.55 kB / 0.5572 GB, free: 17.04 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.43e-05/0.5904, allocations: 30.56 kB / 0.5572 GB, free: 17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.5904, allocations: 4.688 kB / 0.5572 GB, free: 17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.033e-05/0.5905, allocations: 160.3 kB / 0.5574 GB, free: 16.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.5905, allocations: 4 kB / 0.5574 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.5905, allocations: 4 kB / 0.5574 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.148e-05/0.5906, allocations: 38.34 kB / 0.5574 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.5906, allocations: 0 / 0.5574 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.5906, allocations: 4 kB / 0.5574 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.5907, allocations: 1.375 kB / 0.5574 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.838e-05/0.5907, allocations: 0 / 0.5574 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001119/0.5908, allocations: 150.9 kB / 0.5576 GB, free: 16.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.82e-05/0.5908, allocations: 18.61 kB / 0.5576 GB, free: 16.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.232e-05/0.5909, allocations: 8.859 kB / 0.5576 GB, free: 16.53 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-06/0.5909, allocations: 0 / 0.5576 GB, free: 16.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.5909, allocations: 66 kB / 0.5577 GB, free: 16.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.5909, allocations: 0 / 0.5577 GB, free: 16.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.5911, allocations: 57.14 kB / 0.5577 GB, free: 16.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.5912, allocations: 80.98 kB / 0.5578 GB, free: 16.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.147e-05/0.5912, allocations: 89 kB / 0.5579 GB, free: 16.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-06/0.5912, allocations: 29.73 kB / 0.5579 GB, free: 16.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.473e-05/0.5912, allocations: 81.69 kB / 0.558 GB, free: 16.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.5913, allocations: 0.7812 kB / 0.558 GB, free: 16.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.5913, allocations: 0 / 0.558 GB, free: 16.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.5913, allocations: 310.8 kB / 0.5583 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-06/0.5913, allocations: 0 / 0.5583 GB, free: 15.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-06/0.5913, allocations: 4 kB / 0.5583 GB, free: 15.76 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.39e-05/0.5914, allocations: 26.92 kB / 0.5583 GB, free: 15.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5914, allocations: 8.016 kB / 0.5583 GB, free: 15.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.155e-05/0.5915, allocations: 73.95 kB / 0.5584 GB, free: 15.65 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.5915, allocations: 30.64 kB / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.5915, allocations: 0 / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.5915, allocations: 4 kB / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.5915, allocations: 0 / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.5915, allocations: 0.7031 kB / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.152e-05/0.5916, allocations: 0 / 0.5584 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.5916, allocations: 0 / 0.5584 GB, free: 15.61 MB / 394.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 () * 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 5.455e-05/0.5916, allocations: 136.6 kB / 0.5585 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.649e-06/0.5916, allocations: 4.938 kB / 0.5585 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.373e-05/0.5917, allocations: 3.125 kB / 0.5586 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.5917, allocations: 0 / 0.5586 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5917, allocations: 0.75 kB / 0.5586 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.5917, allocations: 0 / 0.5586 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.156e-05/0.5918, allocations: 148.5 kB / 0.5587 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5918, allocations: 0 / 0.5587 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-06/0.5918, allocations: 3.953 kB / 0.5587 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.5918, allocations: 0 / 0.5587 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.5918, allocations: 0 / 0.5587 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.5918, allocations: 5.688 kB / 0.5587 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.5918, allocations: 0 / 0.5587 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.036e-05/0.5919, allocations: 93.25 kB / 0.5588 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.5919, allocations: 78.14 kB / 0.5589 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.5919, allocations: 7.953 kB / 0.5589 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-06/0.592, allocations: 0 / 0.5589 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.592, allocations: 5.234 kB / 0.5589 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.592, allocations: 8.828 kB / 0.5589 GB, free: 15.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.638e-05/0.592, allocations: 75.28 kB / 0.559 GB, free: 14.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.592, allocations: 3.172 kB / 0.559 GB, free: 14.97 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002674/0.5923, allocations: 21.5 kB / 0.559 GB, free: 14.95 MB / 394.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) * 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.0005586/0.5928, allocations: 0.7162 MB / 0.5597 GB, free: 14.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.137e-05/0.5929, allocations: 60.8 kB / 0.5597 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.593, allocations: 4.062 kB / 0.5597 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.945e-05/0.593, allocations: 55.41 kB / 0.5598 GB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.577e-05/0.5931, allocations: 13.14 kB / 0.5598 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002514/0.5933, allocations: 92.81 kB / 0.5599 GB, free: 14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.5935, allocations: 0.6743 MB / 0.5606 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.902e-06/0.5935, allocations: 0 / 0.5606 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.421e-05/0.5935, allocations: 7.438 kB / 0.5606 GB, free: 13.29 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5935, allocations: 0 / 0.5606 GB, free: 13.29 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/0.6068, allocations: 1.165 MB / 0.5617 GB, free: 12.55 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.6071, allocations: 173 kB / 0.5619 GB, free: 12.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.47/2.077, allocations: 0 / 0.5619 GB, free: 12.33 MB / 394.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