Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.00156/0.00156, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001079/0.001079, allocations: 86.66 kB / 267.5 MB, free: 14.04 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.2804/0.2804, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.364e-05/3.379e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5203/0.6362, allocations: 86.87 MB / 0.5577 GB, free: 288 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.6365, allocations: 71.88 kB / 0.5578 GB, free: 252 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02633/0.6629, allocations: 6.085 MB / 0.5637 GB, free: 11.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.663, allocations: 0 / 0.5637 GB, free: 11.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.199e-05/0.663, allocations: 8 kB / 0.5637 GB, free: 11.18 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001664/0.6647, allocations: 0.5569 MB / 0.5643 GB, free: 10.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.6648, allocations: 8.031 kB / 0.5643 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.6649, allocations: 72.72 kB / 0.5644 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.6651, allocations: 43.48 kB / 0.5644 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.6655, allocations: 262.6 kB / 0.5646 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.6655, allocations: 28.16 kB / 0.5647 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-05/0.6656, allocations: 39.66 kB / 0.5647 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008223/0.6665, allocations: 372.5 kB / 0.5651 GB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.012e-05/0.6665, allocations: 15.34 kB / 0.5651 GB, free: 9.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.6666, allocations: 17.33 kB / 0.5651 GB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.6666, allocations: 8 kB / 0.5651 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.6672, allocations: 196.8 kB / 0.5653 GB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.6706, allocations: 1.725 MB / 0.567 GB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.6712, allocations: 249.2 kB / 0.5672 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.6714, allocations: 86.48 kB / 0.5673 GB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.6714, allocations: 8 kB / 0.5673 GB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.6715, allocations: 46.05 kB / 0.5674 GB, free: 7.656 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.806e-06/0.6715, allocations: 3.609 kB / 0.5674 GB, free: 7.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007108/0.6722, allocations: 192.2 kB / 0.5675 GB, free: 7.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.6724, allocations: 213.6 kB / 0.5677 GB, free: 7.234 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003594/0.6728, allocations: 241.7 kB / 0.568 GB, free: 7.027 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.6728, allocations: 29.33 kB / 0.568 GB, free: 6.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.673, allocations: 295.1 kB / 0.5683 GB, free: 6.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.6732, allocations: 119.9 kB / 0.5684 GB, free: 6.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.6732, allocations: 10.44 kB / 0.5684 GB, free: 6.629 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.6734, allocations: 341.6 kB / 0.5687 GB, free: 6.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.6736, allocations: 83.88 kB / 0.5688 GB, free: 6.242 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005092/0.6741, allocations: 407.6 kB / 0.5692 GB, free: 5.727 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/0.6745, allocations: 160.4 kB / 0.5694 GB, free: 5.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.6746, allocations: 4 kB / 0.5694 GB, free: 5.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001177/0.6757, allocations: 494.6 kB / 0.5698 GB, free: 5.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.6758, allocations: 12 kB / 0.5698 GB, free: 5.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/0.6758, allocations: 12 kB / 0.5699 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.418e-05/0.6759, allocations: 16 kB / 0.5699 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008924/0.6768, allocations: 149.6 kB / 0.57 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.284e-05/0.6769, allocations: 19.92 kB / 0.57 GB, free: 5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/0.6774, allocations: 72.58 kB / 0.5701 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.6775, allocations: 35.81 kB / 0.5701 GB, free: 4.906 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.6776, allocations: 150 kB / 0.5703 GB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.6778, allocations: 31.62 kB / 0.5703 GB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.678, allocations: 35.03 kB / 0.5703 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.678, allocations: 4 kB / 0.5703 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.678, allocations: 4 kB / 0.5703 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.678, allocations: 0 / 0.5703 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.6801, allocations: 0.6437 MB / 0.571 GB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.6801, allocations: 0 / 0.571 GB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000957/0.6811, allocations: 91.27 kB / 0.5711 GB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-05/0.6811, allocations: 4 kB / 0.5711 GB, free: 3.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.6812, allocations: 18.55 kB / 0.5711 GB, free: 3.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.395e-05/0.6812, allocations: 4 kB / 0.5711 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.6812, allocations: 11.88 kB / 0.5711 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000991/0.6822, allocations: 0.8928 MB / 0.572 GB, free: 3.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.6824, allocations: 116.1 kB / 0.5721 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.6825, allocations: 19.45 kB / 0.5721 GB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005154/0.683, allocations: 15.25 kB / 0.5721 GB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.6831, allocations: 19.47 kB / 0.5721 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.6831, allocations: 14.98 kB / 0.5721 GB, free: 2.859 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002768/0.6834, allocations: 178.2 kB / 0.5723 GB, free: 2.715 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6834, allocations: 0 / 0.5723 GB, free: 2.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001032/0.6845, allocations: 105 kB / 0.5724 GB, free: 2.625 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/0.6861, allocations: 1.993 MB / 0.5744 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007405/0.6869, allocations: 259.6 kB / 0.5746 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6869, allocations: 0 / 0.5746 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.6871, allocations: 82.11 kB / 0.5747 GB, free: 372 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009599/0.6881, allocations: 60.86 kB / 0.5747 GB, free: 328 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.6924, allocations: 1.662 MB / 0.5764 GB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.693, allocations: 0.8033 MB / 0.5772 GB, free: 13.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.6933, allocations: 118 kB / 0.5773 GB, free: 13.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6933, allocations: 0 / 0.5773 GB, free: 13.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.57/3.264, allocations: 5.532 MB / 0.5827 GB, free: 8.336 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat