Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 180 kB / 17.01 MB, free: 5.125 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.32/1.32, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008134/0.0008134, allocations: 96.91 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09994/0.3351, allocations: 92.3 MB / 468.2 MB, free: 4.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.3355, allocations: 95.89 kB / 468.3 MB, free: 4.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3434/0.6789, allocations: 83.07 MB / 0.5385 GB, free: 78.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.6789, allocations: 0 / 0.5385 GB, free: 78.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002323/0.6791, allocations: 79.98 kB / 0.5385 GB, free: 78.02 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01194/0.6911, allocations: 4.352 MB / 0.5428 GB, free: 73.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.6912, allocations: 8.031 kB / 0.5428 GB, free: 73.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002471/0.6936, allocations: 0.6556 MB / 0.5434 GB, free: 72.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02318/0.7168, allocations: 6.609 MB / 0.5499 GB, free: 66.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01318/0.7301, allocations: 5.878 MB / 0.5556 GB, free: 60.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.7303, allocations: 267 kB / 0.5559 GB, free: 60.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001514/0.7318, allocations: 355.8 kB / 0.5562 GB, free: 59.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.017/0.7489, allocations: 9.102 MB / 0.5651 GB, free: 49.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002597/0.7492, allocations: 71.36 kB / 0.5652 GB, free: 49.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001282/0.7505, allocations: 171.9 kB / 0.5653 GB, free: 49.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001127/0.7516, allocations: 0.8884 MB / 0.5662 GB, free: 48.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.7646, allocations: 7.596 MB / 0.5736 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03864/0.8033, allocations: 42.3 MB / 0.6149 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007891/0.8112, allocations: 3.762 MB / 0.6186 GB, free: 9.418 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004196/0.8117, allocations: 328.2 kB / 0.6189 GB, free: 9.043 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.8117, allocations: 55.52 kB / 0.619 GB, free: 8.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 4.949e-06/0.8118, allocations: 0 / 0.619 GB, free: 8.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.04921/0.861, allocations: 19.5 MB / 0.638 GB, free: 5.297 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.8611, allocations: 248.6 kB / 0.6383 GB, free: 4.996 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005785/0.8669, allocations: 3.488 MB / 0.6417 GB, free: 1.484 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003981/0.8674, allocations: 57.7 kB / 0.6417 GB, free: 1.422 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.184/1.051, allocations: 2.831 MB / 0.6445 GB, free: 103.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.052, allocations: 0.7179 MB / 0.6452 GB, free: 103.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/1.053, allocations: 107.9 kB / 0.6453 GB, free: 103.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002384/1.053, allocations: 0.5329 MB / 0.6458 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/1.055, allocations: 2.085 MB / 0.6478 GB, free: 103.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/1.059, allocations: 5.319 MB / 0.653 GB, free: 99.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004134/1.063, allocations: 3.267 MB / 0.6562 GB, free: 99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-05/1.063, allocations: 35.91 kB / 0.6563 GB, free: 99 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01239/1.076, allocations: 8.43 MB / 0.6645 GB, free: 98.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/1.076, allocations: 50.53 kB / 0.6646 GB, free: 98.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-05/1.076, allocations: 115.7 kB / 0.6647 GB, free: 98.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/1.079, allocations: 1.385 MB / 0.666 GB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/1.083, allocations: 1.227 MB / 0.6672 GB, free: 98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009567/1.092, allocations: 8.712 MB / 0.6757 GB, free: 93.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004301/1.097, allocations: 323.1 kB / 0.676 GB, free: 93.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006635/1.097, allocations: 330.3 kB / 0.6763 GB, free: 93.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003066/1.1, allocations: 1.946 MB / 0.6782 GB, free: 92.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005572/1.101, allocations: 357.4 kB / 0.6786 GB, free: 92.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006159/1.107, allocations: 3.91 MB / 0.6824 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/1.107, allocations: 24.14 kB / 0.6824 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/1.107, allocations: 6.969 kB / 0.6824 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/1.107, allocations: 12.23 kB / 0.6824 GB, free: 91.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/1.12, allocations: 8.923 MB / 0.6912 GB, free: 87.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.12, allocations: 5.438 kB / 0.6912 GB, free: 87.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/1.121, allocations: 258.2 kB / 0.6914 GB, free: 87.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003036/1.124, allocations: 1.215 MB / 0.6926 GB, free: 87.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.125, allocations: 32.78 kB / 0.6926 GB, free: 87.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/1.133, allocations: 7.866 MB / 0.7003 GB, free: 80.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.133, allocations: 10.5 kB / 0.7003 GB, free: 80.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008212/1.141, allocations: 6.806 MB / 0.707 GB, free: 74.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.143, allocations: 0.6818 MB / 0.7076 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003941/1.143, allocations: 28 kB / 0.7077 GB, free: 74.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/1.144, allocations: 107 kB / 0.7078 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/1.145, allocations: 120.8 kB / 0.7079 GB, free: 74.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/1.145, allocations: 51.56 kB / 0.7079 GB, free: 73.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002951/1.148, allocations: 2.47 MB / 0.7103 GB, free: 71.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.148, allocations: 0 / 0.7103 GB, free: 71.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003735/1.151, allocations: 0.9976 MB / 0.7113 GB, free: 70.95 MB / 410.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 () * Number of clocked 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.008283/1.16, allocations: 7.752 MB / 0.7189 GB, free: 64.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007258/1.167, allocations: 5.188 MB / 0.7239 GB, free: 59.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.167, allocations: 4 kB / 0.724 GB, free: 59.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/1.17, allocations: 1.979 MB / 0.7259 GB, free: 57.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/1.172, allocations: 447.8 kB / 0.7263 GB, free: 57.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2901/1.462, allocations: 112.7 MB / 0.8363 GB, free: 114.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003152/1.465, allocations: 3.181 MB / 0.8395 GB, free: 114 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004271/1.469, allocations: 1.825 MB / 0.8412 GB, free: 114 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002842/1.472, allocations: 1.774 MB / 0.843 GB, free: 114 MB / 442.7 MB Notification: Performance of SimCode: time 1.883e-06/1.472, allocations: 0 / 0.843 GB, free: 114 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1049/1.577, allocations: 79.4 MB / 0.9205 GB, free: 53.17 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/1.577, allocations: 212.8 kB / 0.9207 GB, free: 52.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.015/5.592, allocations: 4 kB / 0.9207 GB, free: 52.93 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat