Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestInternal",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.002358/0.002358, allocations: 187.6 kB / 16.41 MB, free: 5.723 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.997/1.997, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001135/0.001135, allocations: 93.97 kB / 270.9 MB, free: 8.375 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.5156/0.5156, allocations: 43.55 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004675, allocations: 8 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.463/0.5952, allocations: 84.74 MB / 0.5616 GB, free: 1.934 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.5955, allocations: 63.97 kB / 0.5616 GB, free: 1.871 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005692/0.6012, allocations: 1.666 MB / 0.5633 GB, free: 228 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.6013, allocations: 3.188 kB / 0.5633 GB, free: 228 kB / 378.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.6013, allocations: 0 / 0.5633 GB, free: 228 kB / 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.000314/0.6016, allocations: 361 kB / 0.5636 GB, free: 15.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.6017, allocations: 12.03 kB / 0.5636 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.279e-05/0.6017, allocations: 30.56 kB / 0.5636 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.6017, allocations: 11.34 kB / 0.5636 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.6019, allocations: 163.1 kB / 0.5638 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.6019, allocations: 0.8125 kB / 0.5638 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-06/0.6019, allocations: 0 / 0.5638 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.6021, allocations: 31.14 kB / 0.5638 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.6021, allocations: 0 / 0.5638 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.6021, allocations: 0 / 0.5638 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.6021, allocations: 3.5 kB / 0.5638 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.6022, allocations: 5.031 kB / 0.5638 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000189/0.6024, allocations: 149.6 kB / 0.564 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.271e-05/0.6025, allocations: 26.5 kB / 0.564 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-06/0.6025, allocations: 0 / 0.564 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.6025, allocations: 60.36 kB / 0.5641 GB, free: 15.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.432e-06/0.6026, allocations: 4 kB / 0.5641 GB, free: 15.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001913/0.6028, allocations: 59.41 kB / 0.5641 GB, free: 15.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.6028, allocations: 85.03 kB / 0.5642 GB, free: 15.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.997e-05/0.6029, allocations: 88.06 kB / 0.5643 GB, free: 14.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.6029, allocations: 26.36 kB / 0.5643 GB, free: 14.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.109e-05/0.603, allocations: 154.6 kB / 0.5645 GB, free: 14.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.603, allocations: 0.9375 kB / 0.5645 GB, free: 14.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-06/0.603, allocations: 0 / 0.5645 GB, free: 14.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6032, allocations: 319 kB / 0.5648 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.6032, allocations: 0 / 0.5648 GB, free: 14.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.6032, allocations: 0 / 0.5648 GB, free: 14.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.265e-05/0.6033, allocations: 33.08 kB / 0.5648 GB, free: 14.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6033, allocations: 0 / 0.5648 GB, free: 14.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.203e-05/0.6034, allocations: 63.34 kB / 0.5649 GB, free: 14.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.6034, allocations: 33.7 kB / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.6034, allocations: 0 / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.6035, allocations: 0 / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.6035, allocations: 4.094 kB / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.6035, allocations: 3.938 kB / 0.5649 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.16e-05/0.6035, allocations: 4 kB / 0.5649 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.6035, allocations: 4 kB / 0.5649 GB, free: 14.29 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 () * 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 0.0001003/0.6036, allocations: 135.5 kB / 0.565 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.6037, allocations: 7.938 kB / 0.565 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.235e-05/0.6037, allocations: 3.125 kB / 0.5651 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.6037, allocations: 4 kB / 0.5651 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6037, allocations: 0 / 0.5651 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.6037, allocations: 4 kB / 0.5651 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.6039, allocations: 141.7 kB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.6039, allocations: 0 / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.6039, allocations: 0 / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.655e-06/0.6039, allocations: 7.938 kB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.6039, allocations: 4.547 kB / 0.5652 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.6039, allocations: 1.125 kB / 0.5652 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.6039, allocations: 0 / 0.5652 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001232/0.6041, allocations: 92.88 kB / 0.5653 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.6041, allocations: 81.09 kB / 0.5654 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.6041, allocations: 4.5 kB / 0.5654 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.386e-05/0.6042, allocations: 0 / 0.5654 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/0.6042, allocations: 3.938 kB / 0.5654 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.6042, allocations: 8 kB / 0.5654 GB, free: 13.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.694e-05/0.6043, allocations: 75.28 kB / 0.5655 GB, free: 13.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6043, allocations: 3.938 kB / 0.5655 GB, free: 13.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.6046, allocations: 27.98 kB / 0.5655 GB, free: 13.59 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) * 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.000991/0.6056, allocations: 0.7948 MB / 0.5663 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.6057, allocations: 67.33 kB / 0.5663 GB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.6057, allocations: 0 / 0.5663 GB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.577e-05/0.6058, allocations: 55.41 kB / 0.5664 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.855e-05/0.6059, allocations: 7.891 kB / 0.5664 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000386/0.6063, allocations: 152.8 kB / 0.5665 GB, free: 12.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.6066, allocations: 0.6692 MB / 0.5672 GB, free: 11.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.621e-05/0.6066, allocations: 7.438 kB / 0.5672 GB, free: 11.79 MB / 394.7 MB Notification: Performance of SimCode: time 9.61e-07/0.6066, allocations: 128 / 0.5672 GB, free: 11.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.411/3.017, allocations: 1.137 MB / 0.5683 GB, free: 10.66 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat