Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, 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.611/1.611, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009352/0.0009352, allocations: 99.23 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.141e-05/2.142e-05, allocations: 4 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 51.47 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4609, allocations: 93.64 MB / 488.9 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4612, allocations: 86.83 kB / 489 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.227/0.6882, allocations: 85 MB / 0.5605 GB, free: 15.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.977e-06/0.6883, allocations: 4 kB / 0.5605 GB, free: 15.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003168/0.6886, allocations: 71.98 kB / 0.5606 GB, free: 15.16 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01547/0.7041, allocations: 3.999 MB / 0.5645 GB, free: 11.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.7042, allocations: 15.97 kB / 0.5645 GB, free: 11.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0271/0.7313, allocations: 6.614 MB / 0.571 GB, free: 4.457 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3052/1.037, allocations: 4.88 MB / 0.5758 GB, free: 80.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/1.037, allocations: 116.4 kB / 0.5759 GB, free: 80.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/1.039, allocations: 215.4 kB / 0.5761 GB, free: 80.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01037/1.049, allocations: 5.246 MB / 0.5812 GB, free: 80.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/1.063, allocations: 8.188 MB / 0.5892 GB, free: 78.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001807/1.063, allocations: 63.72 kB / 0.5892 GB, free: 78.35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004876/1.063, allocations: 30.77 kB / 0.5893 GB, free: 78.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001071/1.064, allocations: 0.8871 MB / 0.5901 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03771/1.102, allocations: 40.65 MB / 0.6298 GB, free: 53.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004102/1.106, allocations: 3.033 MB / 0.6328 GB, free: 52.19 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002275/1.109, allocations: 1.901 MB / 0.6347 GB, free: 51.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004064/1.109, allocations: 336.2 kB / 0.635 GB, free: 51.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/1.109, allocations: 55.78 kB / 0.635 GB, free: 51.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 4.208e-06/1.109, allocations: 1.062 kB / 0.635 GB, free: 51.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.03627/1.145, allocations: 16.71 MB / 0.6514 GB, free: 44.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.145, allocations: 252.1 kB / 0.6516 GB, free: 44.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00553/1.151, allocations: 3.005 MB / 0.6545 GB, free: 43.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004195/1.151, allocations: 25.7 kB / 0.6546 GB, free: 43.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/1.153, allocations: 2.883 MB / 0.6574 GB, free: 41.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007459/1.154, allocations: 0.692 MB / 0.658 GB, free: 40.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/1.154, allocations: 3.406 kB / 0.6581 GB, free: 40.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002685/1.154, allocations: 0.5432 MB / 0.6586 GB, free: 40.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002292/1.157, allocations: 1.971 MB / 0.6605 GB, free: 39.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003734/1.161, allocations: 5.329 MB / 0.6657 GB, free: 34.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/1.164, allocations: 3.221 MB / 0.6689 GB, free: 33.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.168e-05/1.164, allocations: 37.67 kB / 0.6689 GB, free: 33.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01588/1.18, allocations: 7.723 MB / 0.6764 GB, free: 30.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.439e-05/1.18, allocations: 56.69 kB / 0.6765 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/1.181, allocations: 118.8 kB / 0.6766 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003515/1.184, allocations: 1.375 MB / 0.6779 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004102/1.188, allocations: 1.269 MB / 0.6792 GB, free: 30.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0096/1.198, allocations: 7.844 MB / 0.6868 GB, free: 26.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005088/1.203, allocations: 216.2 kB / 0.687 GB, free: 26.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009223/1.204, allocations: 343.7 kB / 0.6874 GB, free: 26.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * Number of states: 0 () * Number of discrete variables: 30 (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 (677): * Single equations (assignments): 673 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000961/1.205, allocations: 408.8 kB / 0.6878 GB, free: 26.06 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006742/1.212, allocations: 4.022 MB / 0.6917 GB, free: 24.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009261/1.213, allocations: 329.6 kB / 0.692 GB, free: 24.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006997/1.22, allocations: 3.749 MB / 0.6957 GB, free: 23.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.922e-05/1.22, allocations: 23.56 kB / 0.6957 GB, free: 23.28 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/1.22, allocations: 7.875 kB / 0.6957 GB, free: 23.28 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/1.22, allocations: 6.562 kB / 0.6957 GB, free: 23.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/1.233, allocations: 8.145 MB / 0.7037 GB, free: 18.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/1.233, allocations: 9.688 kB / 0.7037 GB, free: 18.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/1.235, allocations: 263.2 kB / 0.7039 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/1.238, allocations: 1.2 MB / 0.7051 GB, free: 17.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/1.238, allocations: 8 kB / 0.7051 GB, free: 17.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008298/1.246, allocations: 7.034 MB / 0.712 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.246, allocations: 0 / 0.712 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009069/1.255, allocations: 6.605 MB / 0.7184 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/1.257, allocations: 367.5 kB / 0.7188 GB, free: 5.527 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/1.257, allocations: 7.422 kB / 0.7188 GB, free: 5.523 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.259, allocations: 85.97 kB / 0.7189 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/1.259, allocations: 108.9 kB / 0.719 GB, free: 5.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.259, allocations: 55.66 kB / 0.719 GB, free: 5.359 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003392/1.262, allocations: 2.034 MB / 0.721 GB, free: 3.605 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.262, allocations: 0 / 0.721 GB, free: 3.605 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006315/1.269, allocations: 0.8671 MB / 0.7218 GB, free: 2.746 MB / 442.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 (135): * Single equations (assignments): 131 * 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.01452/1.283, allocations: 7.81 MB / 0.7295 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008851/1.292, allocations: 4.998 MB / 0.7344 GB, free: 8.402 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.292, allocations: 0 / 0.7344 GB, free: 8.402 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003064/1.295, allocations: 1.9 MB / 0.7362 GB, free: 6.703 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/1.298, allocations: 388.4 kB / 0.7366 GB, free: 6.383 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2878/1.586, allocations: 8.574 MB / 0.745 GB, free: 88.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003402/1.589, allocations: 3.166 MB / 0.748 GB, free: 88.02 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004442/1.594, allocations: 1.872 MB / 0.7499 GB, free: 87.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002249/1.596, allocations: 1.751 MB / 0.7516 GB, free: 87.97 MB / 458.7 MB Notification: Performance of SimCode: time 2.094e-06/1.596, allocations: 3.281 kB / 0.7516 GB, free: 87.97 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1423/1.738, allocations: 73.8 MB / 0.8237 GB, free: 76.98 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/1.738, allocations: 158 kB / 0.8238 GB, free: 76.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.401/6.139, allocations: 0 / 0.8238 GB, free: 76.79 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat