Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 202.8 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.474/1.474, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009651/0.0009651, allocations: 100.2 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.219e-05/2.221e-05, allocations: 4 kB / 343.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 51.48 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.5152, allocations: 98.48 MB / 493.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.5155, allocations: 85.45 kB / 493.8 MB, free: 10.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2417/0.7572, allocations: 94.29 MB / 0.5743 GB, free: 1.078 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.7573, allocations: 0 / 0.5743 GB, free: 1.078 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002703/0.7576, allocations: 92 kB / 0.5744 GB, free: 0.9883 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.2865/1.044, allocations: 4.44 MB / 0.5788 GB, free: 75.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/1.044, allocations: 13.09 kB / 0.5788 GB, free: 75.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02588/1.07, allocations: 6.707 MB / 0.5853 GB, free: 75.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/1.084, allocations: 5.156 MB / 0.5904 GB, free: 74.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/1.084, allocations: 141.2 kB / 0.5905 GB, free: 74.69 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002303/1.087, allocations: 254.9 kB / 0.5907 GB, free: 74.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01115/1.098, allocations: 5.981 MB / 0.5966 GB, free: 74.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02087/1.119, allocations: 9.169 MB / 0.6055 GB, free: 72.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003732/1.119, allocations: 62.97 kB / 0.6056 GB, free: 72.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001331/1.12, allocations: 31.47 kB / 0.6056 GB, free: 72.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001454/1.122, allocations: 0.9743 MB / 0.6066 GB, free: 72.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04739/1.169, allocations: 43.32 MB / 0.6489 GB, free: 44.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003905/1.173, allocations: 3.087 MB / 0.6519 GB, free: 42.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/1.175, allocations: 1.929 MB / 0.6538 GB, free: 42 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005443/1.176, allocations: 0.6458 MB / 0.6544 GB, free: 41.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/1.176, allocations: 56.56 kB / 0.6545 GB, free: 41.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=166): time 5.25e-06/1.176, allocations: 1.312 kB / 0.6545 GB, free: 41.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=201): time 0.0341/1.21, allocations: 17.95 MB / 0.672 GB, free: 34.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/1.21, allocations: 250.6 kB / 0.6722 GB, free: 34.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004505/1.214, allocations: 3.187 MB / 0.6753 GB, free: 32.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004764/1.215, allocations: 29.64 kB / 0.6754 GB, free: 32.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/1.217, allocations: 3.224 MB / 0.6785 GB, free: 30.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000948/1.218, allocations: 0.7356 MB / 0.6792 GB, free: 29.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003023/1.218, allocations: 3.281 kB / 0.6792 GB, free: 29.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002942/1.218, allocations: 0.5639 MB / 0.6798 GB, free: 29.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002637/1.221, allocations: 2.07 MB / 0.6818 GB, free: 28.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005042/1.226, allocations: 5.667 MB / 0.6874 GB, free: 22.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004777/1.231, allocations: 3.398 MB / 0.6907 GB, free: 21.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.729e-05/1.231, allocations: 41.31 kB / 0.6907 GB, free: 21.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.015/1.246, allocations: 8.567 MB / 0.6991 GB, free: 18.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.381e-05/1.246, allocations: 60.22 kB / 0.6991 GB, free: 18.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/1.246, allocations: 127.2 kB / 0.6993 GB, free: 18.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005043/1.251, allocations: 1.956 MB / 0.7012 GB, free: 18.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/1.255, allocations: 1.304 MB / 0.7024 GB, free: 18.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/1.272, allocations: 14.12 MB / 0.7162 GB, free: 6.281 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006064/1.278, allocations: 232 kB / 0.7164 GB, free: 6.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00132/1.279, allocations: 367.8 kB / 0.7168 GB, free: 5.742 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (699): * Single equations (assignments): 693 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,80.0%) 33,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.001052/1.28, allocations: 425.8 kB / 0.7172 GB, free: 5.32 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006813/1.287, allocations: 4.163 MB / 0.7213 GB, free: 1.883 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006858/1.288, allocations: 351.5 kB / 0.7216 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.298, allocations: 4.202 MB / 0.7257 GB, free: 15.24 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.795e-05/1.298, allocations: 24 kB / 0.7257 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/1.298, allocations: 4 kB / 0.7257 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.285e-05/1.299, allocations: 11.64 kB / 0.7257 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/1.316, allocations: 8.783 MB / 0.7343 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/1.316, allocations: 0 / 0.7343 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/1.318, allocations: 283.4 kB / 0.7346 GB, free: 7.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003511/1.321, allocations: 1.196 MB / 0.7358 GB, free: 7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002695/1.321, allocations: 4 kB / 0.7358 GB, free: 6.996 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/1.331, allocations: 7.033 MB / 0.7426 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/1.331, allocations: 15.88 kB / 0.7426 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3097/1.641, allocations: 7.115 MB / 0.7496 GB, free: 80.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/1.643, allocations: 383.9 kB / 0.75 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005927/1.643, allocations: 3.031 kB / 0.75 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/1.645, allocations: 88.98 kB / 0.75 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/1.645, allocations: 126.7 kB / 0.7502 GB, free: 80.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.645, allocations: 49.56 kB / 0.7502 GB, free: 80.81 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003543/1.649, allocations: 2.153 MB / 0.7523 GB, free: 80.67 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.649, allocations: 0 / 0.7523 GB, free: 80.67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005689/1.654, allocations: 0.9601 MB / 0.7533 GB, free: 80.67 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 143 * 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,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009608/1.664, allocations: 7.733 MB / 0.7608 GB, free: 79.28 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009349/1.673, allocations: 5.637 MB / 0.7663 GB, free: 78.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.673, allocations: 0 / 0.7663 GB, free: 78.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003138/1.677, allocations: 1.961 MB / 0.7682 GB, free: 78.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/1.68, allocations: 469.9 kB / 0.7687 GB, free: 78.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02511/1.705, allocations: 9.524 MB / 0.778 GB, free: 77.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004431/1.709, allocations: 3.542 MB / 0.7814 GB, free: 76.29 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00518/1.715, allocations: 1.922 MB / 0.7833 GB, free: 76.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003378/1.718, allocations: 2.011 MB / 0.7853 GB, free: 76.24 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.718, allocations: 0 / 0.7853 GB, free: 76.24 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1317/1.85, allocations: 83.27 MB / 0.8666 GB, free: 42.4 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/1.85, allocations: 162.8 kB / 0.8667 GB, free: 42.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.758/6.608, allocations: 4 kB / 0.8668 GB, free: 42.21 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat