Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1714/0.1714, allocations: 9.117 MB / 300.1 MB, free: 2.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005114/0.0005115, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1222, allocations: 52.43 MB / 415.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2297/0.352, allocations: 26.3 MB / 441.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.3671, allocations: 6.774 MB / 448.6 MB, free: 24.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005412/0.3725, allocations: 114.7 kB / 448.7 MB, free: 24.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.3763, allocations: 1.305 MB / 450 MB, free: 23.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.3878, allocations: 3.973 MB / 454 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.389, allocations: 124 kB / 454.1 MB, free: 21.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002999/0.392, allocations: 1.428 MB / 455.5 MB, free: 21.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.3936, allocations: 0.8043 MB / 456.3 MB, free: 20.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.3949, allocations: 0.6765 MB / 457 MB, free: 20.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.396, allocations: 0.9739 MB / 458 MB, free: 20.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.3963, allocations: 129.6 kB / 458.1 MB, free: 20.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.3974, allocations: 0.6547 MB / 458.8 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007275/0.3981, allocations: 1.04 MB / 459.8 MB, free: 19.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004775/0.3986, allocations: 0.6446 MB / 460.5 MB, free: 19.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002733/0.4013, allocations: 3.69 MB / 464.1 MB, free: 18.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.4013, allocations: 0 / 464.1 MB, free: 18.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4013, allocations: 0 / 464.1 MB, free: 18.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.244e-05/0.4014, allocations: 0 / 464.1 MB, free: 18.55 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.008339/0.4098, allocations: 3.837 MB / 468 MB, free: 16.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.4098, allocations: 9.188 kB / 468 MB, free: 16.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007272/0.4106, allocations: 0.5464 MB / 468.5 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007612/0.4182, allocations: 2.161 MB / 470.7 MB, free: 16.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003489/0.4217, allocations: 1.332 MB / 472 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.4219, allocations: 149.2 kB / 472.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.4229, allocations: 201.4 kB / 472.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01633/0.4393, allocations: 8.275 MB / 480.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.888e-05/0.4394, allocations: 27 kB / 480.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.4397, allocations: 95.69 kB / 480.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003534/0.4433, allocations: 1.905 MB / 482.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.4609, allocations: 7.443 MB / 490.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04139/0.5023, allocations: 25.57 MB / 0.5036 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006468/0.5088, allocations: 2.607 MB / 0.5062 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001961/0.5108, allocations: 2.04 MB / 0.5081 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.5109, allocations: 47.88 kB / 0.5082 GB, free: 9.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=170): time 5.15e-06/0.5109, allocations: 4 kB / 0.5082 GB, free: 9.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=198): time 0.01586/0.5268, allocations: 6.587 MB / 0.5146 GB, free: 2.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.5269, allocations: 73.41 kB / 0.5147 GB, free: 2.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003585/0.5305, allocations: 2.506 MB / 0.5171 GB, free: 308 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001282/0.5306, allocations: 53.7 kB / 0.5172 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.5321, allocations: 2.036 MB / 0.5192 GB, free: 14.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006293/0.5327, allocations: 0.7207 MB / 0.5199 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.5329, allocations: 80 kB / 0.52 GB, free: 13.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003027/0.5332, allocations: 487.3 kB / 0.5204 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002256/0.5355, allocations: 1.378 MB / 0.5218 GB, free: 11.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004119/0.5396, allocations: 3.626 MB / 0.5253 GB, free: 6.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003235/0.5428, allocations: 2.266 MB / 0.5275 GB, free: 4.477 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.508e-05/0.5429, allocations: 24 kB / 0.5276 GB, free: 4.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=551) (initialization): time 0.008526/0.5514, allocations: 5.257 MB / 0.5327 GB, free: 15.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.739e-05/0.5515, allocations: 36 kB / 0.5327 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-05/0.5516, allocations: 80.16 kB / 0.5328 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000904/0.5525, allocations: 373.3 kB / 0.5332 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.5551, allocations: 0.9282 MB / 0.5341 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005013/0.5601, allocations: 3.926 MB / 0.5379 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/0.5629, allocations: 211.9 kB / 0.5381 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/0.5632, allocations: 240 kB / 0.5383 GB, free: 9.273 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (504): * Single equations (assignments): 499 * Array equations: 4 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002601/0.5658, allocations: 1.615 MB / 0.5399 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003242/0.5662, allocations: 229 kB / 0.5401 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004165/0.5703, allocations: 2.744 MB / 0.5428 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/0.5704, allocations: 31.98 kB / 0.5428 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.5705, allocations: 4 kB / 0.5428 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.5705, allocations: 7.969 kB / 0.5428 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.5819, allocations: 7.175 MB / 0.5498 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.5819, allocations: 7.984 kB / 0.5499 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.5829, allocations: 280.4 kB / 0.5501 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006809/0.5836, allocations: 264.6 kB / 0.5504 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-05/0.5837, allocations: 39.98 kB / 0.5504 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003923/0.5877, allocations: 3.25 MB / 0.5536 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.5877, allocations: 4 kB / 0.5536 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00579/0.5935, allocations: 4.467 MB / 0.558 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008376/0.5943, allocations: 322 kB / 0.5583 GB, free: 4.168 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.5946, allocations: 36 kB / 0.5583 GB, free: 4.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008617/0.5955, allocations: 83.91 kB / 0.5584 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000219/0.5957, allocations: 133 kB / 0.5585 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.5958, allocations: 63.97 kB / 0.5586 GB, free: 3.855 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002919/0.5987, allocations: 1.621 MB / 0.5601 GB, free: 2.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5987, allocations: 4 kB / 0.5601 GB, free: 2.215 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003766/0.6025, allocations: 0.7265 MB / 0.5609 GB, free: 1.488 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (151): * Single equations (assignments): 146 * Array equations: 4 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008439/0.611, allocations: 6.871 MB / 0.5676 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006572/0.6176, allocations: 3.514 MB / 0.571 GB, free: 6.879 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/0.6176, allocations: 4 kB / 0.571 GB, free: 6.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.6195, allocations: 1.257 MB / 0.5722 GB, free: 5.609 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.6215, allocations: 365.1 kB / 0.5726 GB, free: 5.258 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2872/0.9087, allocations: 75.87 MB / 0.6467 GB, free: 42.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002943/0.9117, allocations: 2.69 MB / 0.6493 GB, free: 41.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003284/0.915, allocations: 1.323 MB / 0.6506 GB, free: 41.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/0.9168, allocations: 1.362 MB / 0.6519 GB, free: 41.22 MB / 446.1 MB Notification: Performance of SimCode: time 2.695e-06/0.9168, allocations: 0 / 0.6519 GB, free: 41.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/1.019, allocations: 54.78 MB / 0.7054 GB, free: 9.371 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.019, allocations: 199.1 kB / 0.7056 GB, free: 9.125 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.174/4.194, allocations: 0 / 0.7056 GB, free: 9.125 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) Environment - environmentSimulation: