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.001077/0.001077, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002423, allocations: 8 kB / 306.8 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1088, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2684/0.3773, allocations: 34.75 MB / 393.1 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02849/0.4058, allocations: 8.224 MB / 401.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01008/0.416, allocations: 170.4 kB / 401.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007295/0.4233, allocations: 1.767 MB / 403.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01961/0.443, allocations: 5.5 MB / 408.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003868/0.4469, allocations: 0.6298 MB / 409.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.08499/0.5319, allocations: 60.84 MB / 470.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006396/0.5383, allocations: 3.497 MB / 473.7 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00305/0.5414, allocations: 1.245 MB / 474.9 MB, free: 6.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.545, allocations: 1.971 MB / 476.9 MB, free: 4.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009437/0.546, allocations: 132 kB / 477 MB, free: 4.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002612/0.5486, allocations: 0.9128 MB / 477.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002344/0.551, allocations: 1.648 MB / 479.6 MB, free: 2.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.552, allocations: 0.7766 MB / 480.4 MB, free: 1.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00677/0.5588, allocations: 5.409 MB / 485.8 MB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.5588, allocations: 0 / 485.8 MB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5588, allocations: 0 / 485.8 MB, free: 12.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001493/0.559, allocations: 0 / 485.8 MB, free: 12.07 MB / 398.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.01111/0.5701, allocations: 4.172 MB / 489.9 MB, free: 7.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.5702, allocations: 8.031 kB / 490 MB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001516/0.5717, allocations: 0.6243 MB / 490.6 MB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1259/0.6976, allocations: 12.6 MB / 0.4914 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009384/0.707, allocations: 3.577 MB / 0.4949 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.7073, allocations: 197 kB / 0.4951 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005518/0.7079, allocations: 271.8 kB / 0.4953 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.7225, allocations: 8.73 MB / 0.5039 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/0.7226, allocations: 55.48 kB / 0.5039 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003408/0.723, allocations: 131.9 kB / 0.504 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003043/0.726, allocations: 1.77 MB / 0.5058 GB, free: 11.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.7402, allocations: 7.511 MB / 0.5131 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.268/1.008, allocations: 35.5 MB / 0.5478 GB, free: 127.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008619/1.017, allocations: 3.696 MB / 0.5514 GB, free: 127 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003109/1.02, allocations: 2.03 MB / 0.5534 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004558/1.021, allocations: 331.1 kB / 0.5537 GB, free: 126 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/1.021, allocations: 53.34 kB / 0.5537 GB, free: 125.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.568e-06/1.021, allocations: 0.9688 kB / 0.5537 GB, free: 125.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05249/1.073, allocations: 20.01 MB / 0.5733 GB, free: 118 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/1.073, allocations: 251.5 kB / 0.5735 GB, free: 117.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004683/1.078, allocations: 3.936 MB / 0.5773 GB, free: 114.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004111/1.078, allocations: 49.7 kB / 0.5774 GB, free: 114.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/1.08, allocations: 2.817 MB / 0.5801 GB, free: 111.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007735/1.081, allocations: 0.7164 MB / 0.5808 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003325/1.081, allocations: 112.8 kB / 0.581 GB, free: 111 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003065/1.081, allocations: 0.5367 MB / 0.5815 GB, free: 110.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/1.084, allocations: 2.138 MB / 0.5836 GB, free: 108.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004371/1.089, allocations: 5.388 MB / 0.5888 GB, free: 101.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004203/1.093, allocations: 3.329 MB / 0.5921 GB, free: 98.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/1.093, allocations: 32 kB / 0.5921 GB, free: 98.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01389/1.107, allocations: 8.613 MB / 0.6005 GB, free: 89.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/1.107, allocations: 52 kB / 0.6006 GB, free: 89.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/1.107, allocations: 116 kB / 0.6007 GB, free: 89.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00375/1.111, allocations: 1.517 MB / 0.6022 GB, free: 87.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003969/1.115, allocations: 1.228 MB / 0.6034 GB, free: 86.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/1.126, allocations: 9.173 MB / 0.6123 GB, free: 77.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/1.13, allocations: 324.5 kB / 0.6126 GB, free: 76.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009617/1.131, allocations: 328.6 kB / 0.6129 GB, free: 76.65 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.003833/1.135, allocations: 1.933 MB / 0.6148 GB, free: 74.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009017/1.136, allocations: 353 kB / 0.6152 GB, free: 74.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007382/1.143, allocations: 4.147 MB / 0.6192 GB, free: 70.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.988e-05/1.144, allocations: 20.88 kB / 0.6192 GB, free: 70.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-05/1.144, allocations: 8 kB / 0.6192 GB, free: 70.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.532e-05/1.144, allocations: 7.969 kB / 0.6193 GB, free: 70.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/1.16, allocations: 9.301 MB / 0.6283 GB, free: 60.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-05/1.16, allocations: 0 / 0.6283 GB, free: 60.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/1.162, allocations: 267.6 kB / 0.6286 GB, free: 60.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003636/1.165, allocations: 1.347 MB / 0.6299 GB, free: 59.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004868/1.166, allocations: 39.81 kB / 0.6299 GB, free: 59.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.177, allocations: 8.305 MB / 0.6381 GB, free: 50.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.177, allocations: 7.938 kB / 0.6381 GB, free: 50.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.189, allocations: 7.027 MB / 0.6449 GB, free: 43.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/1.191, allocations: 408.3 kB / 0.6453 GB, free: 43.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001807/1.193, allocations: 35.98 kB / 0.6453 GB, free: 43.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/1.196, allocations: 119.4 kB / 0.6455 GB, free: 43.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/1.196, allocations: 112.7 kB / 0.6456 GB, free: 42.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002956/1.197, allocations: 47.98 kB / 0.6456 GB, free: 42.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006226/1.203, allocations: 2.486 MB / 0.648 GB, free: 40.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.21e-07/1.203, allocations: 0 / 0.648 GB, free: 40.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007765/1.211, allocations: 1.01 MB / 0.649 GB, free: 39.43 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.01387/1.225, allocations: 7.667 MB / 0.6565 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009925/1.235, allocations: 5.337 MB / 0.6617 GB, free: 26.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.235, allocations: 4 kB / 0.6617 GB, free: 26.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/1.239, allocations: 2.081 MB / 0.6638 GB, free: 24.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004181/1.243, allocations: 474.3 kB / 0.6642 GB, free: 23.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06227/1.305, allocations: 35.18 MB / 0.6986 GB, free: 1.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2082/1.513, allocations: 3.086 MB / 0.7016 GB, free: 153.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007079/1.521, allocations: 1.828 MB / 0.7034 GB, free: 153.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003145/1.524, allocations: 1.751 MB / 0.7051 GB, free: 153.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.635e-06/1.524, allocations: 0 / 0.7051 GB, free: 153.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1267/1.65, allocations: 80.32 MB / 0.7835 GB, free: 91.17 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/1.651, allocations: 220.7 kB / 0.7837 GB, free: 90.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.141/5.791, allocations: 0 / 0.7837 GB, free: 90.93 MB / 462.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