Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions",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.001537/0.001537, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.991/1.991, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001147/0.001147, allocations: 88.44 kB / 270.9 MB, free: 8.363 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.5788/0.5788, allocations: 43.56 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006641/0.0006642, allocations: 16 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1277, allocations: 58.85 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4817/0.6094, allocations: 86.98 MB / 0.5638 GB, free: 15.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.6098, allocations: 71.95 kB / 0.5638 GB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02753/0.6373, allocations: 6.262 MB / 0.5699 GB, free: 9.195 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6374, allocations: 0 / 0.5699 GB, free: 9.195 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.055e-05/0.6374, allocations: 15.98 kB / 0.57 GB, free: 9.18 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001392/0.6388, allocations: 0.6075 MB / 0.5706 GB, free: 8.527 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.6389, allocations: 12.03 kB / 0.5706 GB, free: 8.516 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.639, allocations: 74.53 kB / 0.5706 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.6392, allocations: 44.88 kB / 0.5707 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.6397, allocations: 283.4 kB / 0.5709 GB, free: 8.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.6397, allocations: 29 kB / 0.571 GB, free: 8.043 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.6399, allocations: 44.94 kB / 0.571 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.6411, allocations: 381 kB / 0.5714 GB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.6411, allocations: 0 / 0.5714 GB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.632e-05/0.6412, allocations: 23.95 kB / 0.5714 GB, free: 7.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.6412, allocations: 12 kB / 0.5714 GB, free: 7.574 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009363/0.6422, allocations: 250 kB / 0.5717 GB, free: 7.332 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.6448, allocations: 1.112 MB / 0.5727 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009584/0.6459, allocations: 353 kB / 0.5731 GB, free: 5.789 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.6459, allocations: 8 kB / 0.5731 GB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.646, allocations: 45.78 kB / 0.5731 GB, free: 5.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 3.577e-06/0.646, allocations: 0 / 0.5731 GB, free: 5.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.006588/0.6526, allocations: 2.478 MB / 0.5755 GB, free: 2.988 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.6527, allocations: 118.8 kB / 0.5757 GB, free: 2.848 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.6531, allocations: 209.8 kB / 0.5759 GB, free: 2.641 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.795e-05/0.6532, allocations: 33.7 kB / 0.5759 GB, free: 2.602 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.6534, allocations: 231.1 kB / 0.5761 GB, free: 2.371 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.6536, allocations: 205 kB / 0.5763 GB, free: 2.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.992e-05/0.6537, allocations: 12 kB / 0.5763 GB, free: 2.156 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.6538, allocations: 330.8 kB / 0.5766 GB, free: 1.824 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004925/0.6543, allocations: 145 kB / 0.5768 GB, free: 1.684 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005648/0.6549, allocations: 235.8 kB / 0.577 GB, free: 1.418 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005589/0.6555, allocations: 163.4 kB / 0.5772 GB, free: 1.262 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.6555, allocations: 0 / 0.5772 GB, free: 1.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001886/0.6574, allocations: 0.5609 MB / 0.5777 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/0.6575, allocations: 8 kB / 0.5777 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.6575, allocations: 0 / 0.5777 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006604/0.6582, allocations: 122.5 kB / 0.5778 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008027/0.659, allocations: 95.89 kB / 0.5779 GB, free: 468 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006942/0.666, allocations: 4.708 MB / 0.5825 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004774/0.6665, allocations: 27.98 kB / 0.5825 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.639e-05/0.6666, allocations: 24 kB / 0.5826 GB, free: 11.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000335/0.667, allocations: 169.7 kB / 0.5827 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.6671, allocations: 43.56 kB / 0.5828 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.6673, allocations: 38.19 kB / 0.5828 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.6673, allocations: 8 kB / 0.5828 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/0.6673, allocations: 7.984 kB / 0.5828 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.6673, allocations: 0 / 0.5828 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.6709, allocations: 1.347 MB / 0.5841 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.6709, allocations: 0 / 0.5841 GB, free: 9.613 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008697/0.6718, allocations: 107.8 kB / 0.5842 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005174/0.6724, allocations: 98.59 kB / 0.5843 GB, free: 9.402 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.442e-05/0.6725, allocations: 8 kB / 0.5843 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.6776, allocations: 4.135 MB / 0.5884 GB, free: 4.859 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.6776, allocations: 4.031 kB / 0.5884 GB, free: 4.855 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.6801, allocations: 1.005 MB / 0.5894 GB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.6804, allocations: 104.7 kB / 0.5895 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.6805, allocations: 12.06 kB / 0.5895 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.681, allocations: 23.92 kB / 0.5895 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.6812, allocations: 47.78 kB / 0.5895 GB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.6812, allocations: 16 kB / 0.5896 GB, free: 3.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002899/0.6815, allocations: 178 kB / 0.5897 GB, free: 3.395 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6815, allocations: 0 / 0.5897 GB, free: 3.395 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001088/0.6826, allocations: 120 kB / 0.5898 GB, free: 3.277 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00319/0.6858, allocations: 1.896 MB / 0.5917 GB, free: 1.316 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.688, allocations: 0.7784 MB / 0.5925 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.688, allocations: 0 / 0.5925 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.6895, allocations: 0.5846 MB / 0.593 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007748/0.6903, allocations: 45.09 kB / 0.5931 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00756/0.6979, allocations: 4.37 MB / 0.5973 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.6985, allocations: 0.8366 MB / 0.5982 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.6988, allocations: 131.4 kB / 0.5983 GB, free: 10.35 MB / 426.7 MB Notification: Performance of SimCode: time 1.011e-06/0.6989, allocations: 0 / 0.5983 GB, free: 10.35 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.95/3.649, allocations: 10.47 MB / 0.6085 GB, free: 15.88 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat does not exist to compare? outputFormat=mat