Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001547/0.001547, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2935/0.2935, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.68e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4099, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5684, allocations: 83.81 MB / 0.5478 GB, free: 15.42 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.5687, allocations: 67.47 kB / 0.5479 GB, free: 15.36 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005512/0.5742, allocations: 1.411 MB / 0.5493 GB, free: 13.94 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5743, allocations: 3.938 kB / 0.5493 GB, free: 13.94 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.5743, allocations: 0 / 0.5493 GB, free: 13.94 MB / 395.1 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.0003816/0.5747, allocations: 356.2 kB / 0.5496 GB, free: 13.54 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.5747, allocations: 8.031 kB / 0.5496 GB, free: 13.53 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.5748, allocations: 0 / 0.5496 GB, free: 13.53 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.5749, allocations: 167 kB / 0.5498 GB, free: 13.33 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.575, allocations: 4 kB / 0.5498 GB, free: 13.32 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.575, allocations: 0 / 0.5498 GB, free: 13.32 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.361e-05/0.575, allocations: 4 kB / 0.5498 GB, free: 13.32 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.902e-05/0.5751, allocations: 32.3 kB / 0.5498 GB, free: 13.29 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.5751, allocations: 0 / 0.5498 GB, free: 13.29 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.5751, allocations: 0 / 0.5498 GB, free: 13.29 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.5752, allocations: 0 / 0.5498 GB, free: 13.29 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.5753, allocations: 130.2 kB / 0.5499 GB, free: 13.12 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.395e-05/0.5754, allocations: 22.5 kB / 0.55 GB, free: 13.09 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.5754, allocations: 12.94 kB / 0.55 GB, free: 13.07 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-06/0.5754, allocations: 4 kB / 0.55 GB, free: 13.07 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/0.5755, allocations: 60.27 kB / 0.55 GB, free: 13 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.5755, allocations: 0 / 0.55 GB, free: 13 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.000194/0.5757, allocations: 33.7 kB / 0.5501 GB, free: 12.96 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.5758, allocations: 85.09 kB / 0.5502 GB, free: 12.86 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.295e-05/0.5758, allocations: 85 kB / 0.5502 GB, free: 12.77 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.5758, allocations: 25.7 kB / 0.5503 GB, free: 12.73 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.5759, allocations: 154.6 kB / 0.5504 GB, free: 12.58 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.5759, allocations: 0 / 0.5504 GB, free: 12.58 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/0.576, allocations: 7.938 kB / 0.5504 GB, free: 12.57 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5761, allocations: 310.8 kB / 0.5507 GB, free: 12.26 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-06/0.5761, allocations: 0 / 0.5507 GB, free: 12.26 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-06/0.5761, allocations: 0 / 0.5507 GB, free: 12.26 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.979e-05/0.5762, allocations: 4 kB / 0.5507 GB, free: 12.26 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.5762, allocations: 3.281 kB / 0.5507 GB, free: 12.26 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.782e-05/0.5763, allocations: 41.64 kB / 0.5508 GB, free: 12.21 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.5764, allocations: 37.8 kB / 0.5508 GB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.5764, allocations: 0 / 0.5508 GB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.5764, allocations: 0 / 0.5508 GB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.5764, allocations: 0 / 0.5508 GB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.5764, allocations: 0 / 0.5508 GB, free: 12.17 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.5765, allocations: 4 kB / 0.5508 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.5765, allocations: 0 / 0.5508 GB, free: 12.16 MB / 395.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: 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 9.557e-05/0.5766, allocations: 130.7 kB / 0.5509 GB, free: 12.02 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.494e-05/0.5767, allocations: 45.59 kB / 0.551 GB, free: 11.97 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.5767, allocations: 4.031 kB / 0.551 GB, free: 11.97 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.535e-05/0.5767, allocations: 11.67 kB / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5767, allocations: 0 / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5768, allocations: 0 / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.5768, allocations: 0 / 0.551 GB, free: 11.96 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.698e-05/0.5769, allocations: 126.2 kB / 0.5511 GB, free: 11.8 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5769, allocations: 0 / 0.5511 GB, free: 11.8 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.5769, allocations: 0 / 0.5511 GB, free: 11.8 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.5769, allocations: 3.953 kB / 0.5511 GB, free: 11.79 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.5769, allocations: 0 / 0.5511 GB, free: 11.79 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5769, allocations: 0 / 0.5511 GB, free: 11.79 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.577, allocations: 7.984 kB / 0.5511 GB, free: 11.79 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.5771, allocations: 61.14 kB / 0.5512 GB, free: 11.71 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.5772, allocations: 81.09 kB / 0.5513 GB, free: 11.61 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.5772, allocations: 3.953 kB / 0.5513 GB, free: 11.61 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.383e-05/0.5772, allocations: 4 kB / 0.5513 GB, free: 11.6 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.5772, allocations: 3.938 kB / 0.5513 GB, free: 11.6 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.5772, allocations: 0 / 0.5513 GB, free: 11.6 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.5773, allocations: 79.31 kB / 0.5513 GB, free: 11.52 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5773, allocations: 3.938 kB / 0.5513 GB, free: 11.52 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.5776, allocations: 23.98 kB / 0.5514 GB, free: 11.49 MB / 395.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: 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.0009075/0.5785, allocations: 0.6898 MB / 0.552 GB, free: 10.78 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.5787, allocations: 63.34 kB / 0.5521 GB, free: 10.71 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5787, allocations: 0 / 0.5521 GB, free: 10.71 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 5.892e-05/0.5788, allocations: 51.41 kB / 0.5521 GB, free: 10.64 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.579, allocations: 7.953 kB / 0.5522 GB, free: 10.64 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.5794, allocations: 110.1 kB / 0.5523 GB, free: 10.49 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.5797, allocations: 0.6806 MB / 0.5529 GB, free: 9.781 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.704e-05/0.5797, allocations: 7.438 kB / 0.5529 GB, free: 9.773 MB / 395.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5798, allocations: 0 / 0.5529 GB, free: 9.773 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.346/2.926, allocations: 0.9144 MB / 0.5538 GB, free: 8.863 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat