Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_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.001738/0.001738, allocations: 182.9 kB / 15.76 MB, free: 6.367 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.762/1.762, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009654/0.0009655, allocations: 90.88 kB / 270.2 MB, free: 13.37 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.2173/0.2173, allocations: 43.57 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003273/0.0003269, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1315, allocations: 58.86 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.542, allocations: 86.96 MB / 0.5638 GB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.5423, allocations: 71.95 kB / 0.5638 GB, free: 12.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02194/0.5642, allocations: 6.078 MB / 0.5698 GB, free: 7.715 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.5643, allocations: 7.5 kB / 0.5698 GB, free: 7.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.181e-05/0.5643, allocations: 4 kB / 0.5698 GB, free: 7.707 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.001415/0.5658, allocations: 0.5753 MB / 0.5703 GB, free: 7.102 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.432e-05/0.5658, allocations: 8.031 kB / 0.5704 GB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.566, allocations: 79.27 kB / 0.5704 GB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.5661, allocations: 43.48 kB / 0.5705 GB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.5666, allocations: 264.8 kB / 0.5707 GB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.5667, allocations: 27.38 kB / 0.5708 GB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.5668, allocations: 44.66 kB / 0.5708 GB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009996/0.5678, allocations: 393.6 kB / 0.5712 GB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.5679, allocations: 4 kB / 0.5712 GB, free: 6.336 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.802e-05/0.568, allocations: 17.89 kB / 0.5712 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.568, allocations: 8 kB / 0.5712 GB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000688/0.5687, allocations: 229.1 kB / 0.5714 GB, free: 6.156 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.572, allocations: 1.728 MB / 0.5731 GB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.5726, allocations: 263.8 kB / 0.5734 GB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.5727, allocations: 8 kB / 0.5734 GB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.5727, allocations: 38.5 kB / 0.5734 GB, free: 4.184 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.186e-06/0.5727, allocations: 0 / 0.5734 GB, free: 4.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.001041/0.5738, allocations: 282.4 kB / 0.5737 GB, free: 3.945 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.5739, allocations: 213.6 kB / 0.5739 GB, free: 3.688 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.5743, allocations: 243.7 kB / 0.5741 GB, free: 3.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.5743, allocations: 25.7 kB / 0.5741 GB, free: 3.445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.5745, allocations: 246.3 kB / 0.5744 GB, free: 3.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.5747, allocations: 117.8 kB / 0.5745 GB, free: 3.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.5747, allocations: 11.75 kB / 0.5745 GB, free: 3.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5749, allocations: 353.8 kB / 0.5748 GB, free: 2.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002915/0.5752, allocations: 95.58 kB / 0.5749 GB, free: 2.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.5757, allocations: 433.3 kB / 0.5753 GB, free: 2.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.5761, allocations: 169.2 kB / 0.5755 GB, free: 2.074 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/0.5761, allocations: 4 kB / 0.5755 GB, free: 2.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001258/0.5774, allocations: 0.5267 MB / 0.576 GB, free: 1.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.5775, allocations: 12.94 kB / 0.576 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/0.5775, allocations: 12.5 kB / 0.576 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.041e-05/0.5775, allocations: 16 kB / 0.576 GB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007053/0.5783, allocations: 155.5 kB / 0.5762 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-05/0.5783, allocations: 19.94 kB / 0.5762 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.5789, allocations: 67.17 kB / 0.5763 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.5789, allocations: 31.88 kB / 0.5763 GB, free: 1.344 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 () * Number of clocked 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.0002555/0.5792, allocations: 184 kB / 0.5765 GB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.5795, allocations: 27.72 kB / 0.5765 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.031e-05/0.5796, allocations: 41.34 kB / 0.5766 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.5796, allocations: 4 kB / 0.5766 GB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.5796, allocations: 0 / 0.5766 GB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.5796, allocations: 8.547 kB / 0.5766 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.5816, allocations: 0.6477 MB / 0.5772 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.5816, allocations: 0 / 0.5772 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005694/0.5822, allocations: 95.94 kB / 0.5773 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-06/0.5822, allocations: 4 kB / 0.5773 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.5823, allocations: 7.938 kB / 0.5773 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.5823, allocations: 4 kB / 0.5773 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.5823, allocations: 0 / 0.5773 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008373/0.5831, allocations: 0.9483 MB / 0.5782 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.5833, allocations: 116.8 kB / 0.5783 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.5833, allocations: 11.39 kB / 0.5784 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.5837, allocations: 11.94 kB / 0.5784 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.948e-05/0.5838, allocations: 19.91 kB / 0.5784 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.5838, allocations: 15.86 kB / 0.5784 GB, free: 15.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001645/0.584, allocations: 176.7 kB / 0.5786 GB, free: 15.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.584, allocations: 4 kB / 0.5786 GB, free: 15.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007046/0.5847, allocations: 99.59 kB / 0.5787 GB, free: 15.01 MB / 394.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 () * Number of clocked 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.001296/0.586, allocations: 2.047 MB / 0.5807 GB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.5865, allocations: 291.1 kB / 0.5809 GB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5865, allocations: 0 / 0.5809 GB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.5867, allocations: 96.58 kB / 0.581 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.5873, allocations: 60.23 kB / 0.5811 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007661/0.595, allocations: 10.89 MB / 0.5917 GB, free: 1.723 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.5954, allocations: 0.8072 MB / 0.5925 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.5956, allocations: 47.25 kB / 0.5926 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.5958, allocations: 115 kB / 0.5927 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5958, allocations: 0 / 0.5927 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.6142, allocations: 5.955 MB / 0.5985 GB, free: 10.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.6145, allocations: 183.3 kB / 0.5987 GB, free: 10.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.796, allocations: 0 / 0.5987 GB, free: 10.66 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat