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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 95.36 kB / 16.99 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 199.9 kB / 17.9 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002628, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1222, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2699/0.3921, allocations: 32.8 MB / 391 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01946/0.4116, allocations: 8.542 MB / 399.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007596/0.4192, allocations: 166.3 kB / 399.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006008/0.4253, allocations: 1.609 MB / 401.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01851/0.4438, allocations: 4.887 MB / 406.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003613/0.4474, allocations: 0.6188 MB / 406.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.06877/0.5162, allocations: 48.1 MB / 454.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006022/0.5223, allocations: 3.471 MB / 458.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002395/0.5247, allocations: 1.032 MB / 459.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002521/0.5273, allocations: 1.406 MB / 460.8 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008004/0.5281, allocations: 128 kB / 461 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.5304, allocations: 0.8895 MB / 461.8 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001992/0.5324, allocations: 1.535 MB / 463.4 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.5338, allocations: 0.7766 MB / 464.2 MB, free: 1.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006019/0.5398, allocations: 5.395 MB / 469.5 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.5398, allocations: 3.938 kB / 469.6 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5398, allocations: 0 / 469.6 MB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001084/0.5399, allocations: 0 / 469.6 MB, free: 12 MB / 382.1 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.01069/0.5506, allocations: 4.277 MB / 473.8 MB, free: 7.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.5507, allocations: 8.031 kB / 473.8 MB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001136/0.5518, allocations: 0.6204 MB / 474.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1526/0.7044, allocations: 14.45 MB / 488.9 MB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008585/0.713, allocations: 3.39 MB / 492.3 MB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.7132, allocations: 193 kB / 492.5 MB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007235/0.714, allocations: 271.8 kB / 492.8 MB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.7263, allocations: 8.804 MB / 0.4898 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/0.7264, allocations: 51.5 kB / 0.4899 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003189/0.7267, allocations: 127.9 kB / 0.49 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/0.7295, allocations: 1.77 MB / 0.4917 GB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0124/0.7419, allocations: 7.608 MB / 0.4991 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.266/1.008, allocations: 35.62 MB / 0.5339 GB, free: 126.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009349/1.017, allocations: 3.752 MB / 0.5376 GB, free: 126 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004983/1.018, allocations: 327.4 kB / 0.5379 GB, free: 125.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/1.018, allocations: 50.8 kB / 0.5379 GB, free: 125.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 5.971e-06/1.018, allocations: 0 / 0.5379 GB, free: 125.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05092/1.069, allocations: 20.76 MB / 0.5582 GB, free: 120.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/1.069, allocations: 255.5 kB / 0.5585 GB, free: 120 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004754/1.074, allocations: 4.178 MB / 0.5625 GB, free: 118.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003355/1.074, allocations: 56.92 kB / 0.5626 GB, free: 118.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/1.075, allocations: 2.817 MB / 0.5653 GB, free: 115.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006006/1.076, allocations: 0.7168 MB / 0.566 GB, free: 115 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/1.076, allocations: 112.6 kB / 0.5662 GB, free: 114.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/1.076, allocations: 0.5347 MB / 0.5667 GB, free: 114.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002326/1.079, allocations: 2.146 MB / 0.5688 GB, free: 113.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003276/1.082, allocations: 5.355 MB / 0.574 GB, free: 106.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003596/1.086, allocations: 3.335 MB / 0.5773 GB, free: 103.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-05/1.086, allocations: 36 kB / 0.5773 GB, free: 103.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01266/1.098, allocations: 8.6 MB / 0.5857 GB, free: 94.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.508e-05/1.098, allocations: 56.97 kB / 0.5857 GB, free: 94.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.772e-05/1.099, allocations: 112 kB / 0.5859 GB, free: 94.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003502/1.102, allocations: 1.527 MB / 0.5873 GB, free: 93.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003396/1.105, allocations: 1.222 MB / 0.5885 GB, free: 91.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.116, allocations: 9.493 MB / 0.5978 GB, free: 82.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004285/1.12, allocations: 316.3 kB / 0.5981 GB, free: 81.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006927/1.121, allocations: 333 kB / 0.5984 GB, free: 81.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 (650): * Single equations (assignments): 646 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002797/1.123, allocations: 1.938 MB / 0.6003 GB, free: 79.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006714/1.124, allocations: 359.4 kB / 0.6007 GB, free: 79.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006455/1.131, allocations: 4.135 MB / 0.6047 GB, free: 75.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.48e-05/1.131, allocations: 20 kB / 0.6047 GB, free: 75.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.131, allocations: 12 kB / 0.6047 GB, free: 75.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/1.131, allocations: 13.2 kB / 0.6047 GB, free: 75.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/1.146, allocations: 9.32 MB / 0.6138 GB, free: 65.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/1.146, allocations: 4 kB / 0.6138 GB, free: 65.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.147, allocations: 263.6 kB / 0.6141 GB, free: 65.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003419/1.151, allocations: 1.343 MB / 0.6154 GB, free: 64.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/1.151, allocations: 32.94 kB / 0.6154 GB, free: 64.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.161, allocations: 8.628 MB / 0.6239 GB, free: 55.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.161, allocations: 0 / 0.6239 GB, free: 55.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009805/1.171, allocations: 7.14 MB / 0.6308 GB, free: 48.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/1.172, allocations: 424.4 kB / 0.6312 GB, free: 47.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008356/1.173, allocations: 32.7 kB / 0.6313 GB, free: 47.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002005/1.175, allocations: 120.5 kB / 0.6314 GB, free: 47.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/1.176, allocations: 117.1 kB / 0.6315 GB, free: 47.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/1.176, allocations: 48.7 kB / 0.6315 GB, free: 47.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003375/1.179, allocations: 2.681 MB / 0.6342 GB, free: 44.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.179, allocations: 0 / 0.6342 GB, free: 44.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005515/1.185, allocations: 1.025 MB / 0.6352 GB, free: 43.61 MB / 446.1 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 (136): * Single equations (assignments): 132 * 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.009586/1.194, allocations: 8.095 MB / 0.6431 GB, free: 35.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007343/1.202, allocations: 5.34 MB / 0.6483 GB, free: 30.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.202, allocations: 4 kB / 0.6483 GB, free: 30.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002715/1.205, allocations: 2.066 MB / 0.6503 GB, free: 28.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/1.207, allocations: 454.9 kB / 0.6507 GB, free: 27.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2711/1.478, allocations: 113.1 MB / 0.7612 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00304/1.481, allocations: 3.173 MB / 0.7643 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004216/1.485, allocations: 1.82 MB / 0.7661 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002128/1.487, allocations: 1.761 MB / 0.7678 GB, free: 122.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/1.487, allocations: 0 / 0.7678 GB, free: 122.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1164/1.604, allocations: 81.09 MB / 0.847 GB, free: 46.25 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/1.604, allocations: 215.1 kB / 0.8472 GB, free: 46.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.765/5.369, allocations: 4 kB / 0.8472 GB, free: 46.01 MB / 478.1 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