Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001093, allocations: 101.5 kB / 286.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.185e-05/2.188e-05, allocations: 4 kB / 343.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1334, allocations: 51.46 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.395/0.5284, allocations: 100.4 MB / 495.7 MB, free: 8.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5288, allocations: 86.14 kB / 495.8 MB, free: 8.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2442/0.773, allocations: 91.53 MB / 0.5736 GB, free: 1.824 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7731, allocations: 0 / 0.5736 GB, free: 1.824 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002751/0.7733, allocations: 84 kB / 0.5736 GB, free: 1.742 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.3173/1.091, allocations: 4.468 MB / 0.578 GB, free: 74.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/1.091, allocations: 9.75 kB / 0.578 GB, free: 74.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01821/1.109, allocations: 4.434 MB / 0.5823 GB, free: 74.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/1.12, allocations: 4.233 MB / 0.5865 GB, free: 73.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/1.121, allocations: 142.4 kB / 0.5866 GB, free: 73.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002275/1.123, allocations: 259.8 kB / 0.5869 GB, free: 73.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01171/1.135, allocations: 6.438 MB / 0.5931 GB, free: 73.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02338/1.158, allocations: 9.885 MB / 0.6028 GB, free: 70.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/1.158, allocations: 58.28 kB / 0.6029 GB, free: 70.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001265/1.16, allocations: 28.81 kB / 0.6029 GB, free: 70.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001529/1.161, allocations: 1.097 MB / 0.604 GB, free: 70.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05391/1.215, allocations: 48.24 MB / 0.6511 GB, free: 39.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004481/1.22, allocations: 3.627 MB / 0.6546 GB, free: 37.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/1.222, allocations: 2.111 MB / 0.6567 GB, free: 36.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007805/1.223, allocations: 0.6837 MB / 0.6573 GB, free: 36.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/1.223, allocations: 59.22 kB / 0.6574 GB, free: 36.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=168): time 5.38e-06/1.223, allocations: 0 / 0.6574 GB, free: 36.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.02918/1.252, allocations: 14.8 MB / 0.6718 GB, free: 30.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/1.252, allocations: 172.6 kB / 0.672 GB, free: 30.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004818/1.257, allocations: 3.256 MB / 0.6752 GB, free: 29.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004687/1.257, allocations: 25.7 kB / 0.6752 GB, free: 28.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/1.26, allocations: 3.337 MB / 0.6785 GB, free: 26.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001377/1.261, allocations: 0.7123 MB / 0.6792 GB, free: 25.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003785/1.261, allocations: 0 / 0.6792 GB, free: 25.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003637/1.262, allocations: 0.5755 MB / 0.6797 GB, free: 25.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/1.265, allocations: 2.091 MB / 0.6818 GB, free: 24.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005488/1.27, allocations: 5.891 MB / 0.6875 GB, free: 18.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005472/1.276, allocations: 3.491 MB / 0.6909 GB, free: 17.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001219/1.276, allocations: 49.23 kB / 0.691 GB, free: 17.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01624/1.292, allocations: 7.86 MB / 0.6987 GB, free: 14.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.936e-05/1.292, allocations: 68.44 kB / 0.6987 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001971/1.293, allocations: 137.8 kB / 0.6989 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/1.295, allocations: 0.9097 MB / 0.6997 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005244/1.3, allocations: 1.515 MB / 0.7012 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006489/1.307, allocations: 5.483 MB / 0.7066 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005603/1.312, allocations: 235 kB / 0.7068 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001514/1.314, allocations: 393.2 kB / 0.7072 GB, free: 11.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 46 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (780): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00115/1.315, allocations: 457.1 kB / 0.7076 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005855/1.321, allocations: 3.574 MB / 0.7111 GB, free: 8.387 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.322, allocations: 343.5 kB / 0.7114 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006019/1.328, allocations: 3.274 MB / 0.7146 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.544e-05/1.328, allocations: 20 kB / 0.7146 GB, free: 5.395 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/1.328, allocations: 7.953 kB / 0.7147 GB, free: 5.387 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.031e-05/1.328, allocations: 19.09 kB / 0.7147 GB, free: 5.383 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.346, allocations: 8.062 MB / 0.7225 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/1.346, allocations: 192 / 0.7225 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001844/1.348, allocations: 353.3 kB / 0.7229 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/1.35, allocations: 0.706 MB / 0.7236 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002811/1.35, allocations: 19.8 kB / 0.7236 GB, free: 14.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006359/1.356, allocations: 4.912 MB / 0.7284 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.356, allocations: 8 kB / 0.7284 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/1.367, allocations: 6.246 MB / 0.7345 GB, free: 4.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/1.368, allocations: 383.6 kB / 0.7349 GB, free: 4.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005335/1.369, allocations: 4 kB / 0.7349 GB, free: 4.336 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/1.37, allocations: 92.53 kB / 0.7349 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/1.371, allocations: 114.9 kB / 0.7351 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/1.371, allocations: 54.41 kB / 0.7351 GB, free: 4.168 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003799/1.375, allocations: 2.169 MB / 0.7372 GB, free: 2.301 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.375, allocations: 0 / 0.7372 GB, free: 2.301 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007197/1.382, allocations: 0.907 MB / 0.7381 GB, free: 1.402 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 144 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3473/1.729, allocations: 7.748 MB / 0.7457 GB, free: 82.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008301/1.738, allocations: 5.186 MB / 0.7507 GB, free: 82.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.738, allocations: 0 / 0.7507 GB, free: 82.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002527/1.74, allocations: 1.761 MB / 0.7525 GB, free: 82.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/1.743, allocations: 359.4 kB / 0.7528 GB, free: 82.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/1.763, allocations: 9.492 MB / 0.7621 GB, free: 80.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/1.767, allocations: 3.544 MB / 0.7655 GB, free: 79.62 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005104/1.772, allocations: 2.082 MB / 0.7676 GB, free: 79.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/1.774, allocations: 2.049 MB / 0.7696 GB, free: 79.58 MB / 458.7 MB Notification: Performance of SimCode: time 2.214e-06/1.774, allocations: 1.781 kB / 0.7696 GB, free: 79.58 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1632/1.938, allocations: 74.51 MB / 0.8423 GB, free: 61.48 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/1.938, allocations: 158.1 kB / 0.8425 GB, free: 61.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.233/6.171, allocations: 0 / 0.8425 GB, free: 61.28 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat