Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.005221/0.005221, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.001323/0.001323, allocations: 193.7 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1427/0.1427, allocations: 9.1 MB / 299.6 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.91 kB / 414.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2289, allocations: 51.44 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.008535/0.2375, allocations: 8.506 MB / 474.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.2426, allocations: 2.612 MB / 476.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.244, allocations: 32.81 kB / 476.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009462/0.245, allocations: 369.6 kB / 477.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.2481, allocations: 1.387 MB / 478.5 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.2485, allocations: 149.3 kB / 478.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002662/0.2512, allocations: 2.519 MB / 481.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.2523, allocations: 1.005 MB / 482.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.2535, allocations: 0.9233 MB / 483.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.2548, allocations: 1.315 MB / 484.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003876/0.2552, allocations: 239.5 kB / 484.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.2565, allocations: 0.8397 MB / 485.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008738/0.2574, allocations: 1.225 MB / 486.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.2585, allocations: 1.585 MB / 488.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004742/0.2633, allocations: 5.065 MB / 493.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2633, allocations: 0 / 493.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2633, allocations: 0 / 493.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001001/0.2634, allocations: 1.219 kB / 493.3 MB, free: 15.65 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.009776/0.2732, allocations: 4.278 MB / 497.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2733, allocations: 15.97 kB / 497.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007849/0.2741, allocations: 0.5433 MB / 498.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00621/0.2803, allocations: 1.767 MB / 499.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.283, allocations: 1.339 MB / 0.4895 GB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.2832, allocations: 160 kB / 0.4897 GB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005903/0.2838, allocations: 195.9 kB / 0.4899 GB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01197/0.2957, allocations: 8.192 MB / 0.4979 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.598e-05/0.2958, allocations: 19.81 kB / 0.4979 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/0.2961, allocations: 91.86 kB / 0.498 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002829/0.2989, allocations: 1.919 MB / 0.4998 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/0.3125, allocations: 7.431 MB / 0.5071 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03189/0.3444, allocations: 24.79 MB / 0.5313 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005019/0.3495, allocations: 2.409 MB / 0.5337 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.3508, allocations: 0.8644 MB / 0.5345 GB, free: 9.211 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005558/0.3564, allocations: 4.428 MB / 0.5388 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.3564, allocations: 47.55 kB / 0.5389 GB, free: 4.309 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.346e-06/0.3564, allocations: 4 kB / 0.5389 GB, free: 4.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01023/0.3667, allocations: 4.648 MB / 0.5434 GB, free: 15.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.3667, allocations: 64.41 kB / 0.5435 GB, free: 15.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0032/0.37, allocations: 2.492 MB / 0.5459 GB, free: 13.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.3701, allocations: 45.7 kB / 0.546 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001186/0.3713, allocations: 2.074 MB / 0.548 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004528/0.3718, allocations: 0.5397 MB / 0.5485 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008992/0.3727, allocations: 0.75 MB / 0.5492 GB, free: 9.582 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.004e-05/0.3728, allocations: 301.1 kB / 0.5495 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001904/0.3747, allocations: 1.233 MB / 0.5507 GB, free: 8.051 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003089/0.3778, allocations: 3.302 MB / 0.554 GB, free: 3.738 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005056/0.3829, allocations: 4.887 MB / 0.5587 GB, free: 13.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/0.3829, allocations: 20 kB / 0.5587 GB, free: 13.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.007525/0.3904, allocations: 4.633 MB / 0.5633 GB, free: 9.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/0.3905, allocations: 40.12 kB / 0.5633 GB, free: 9.141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.706e-05/0.3906, allocations: 76 kB / 0.5634 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005578/0.3912, allocations: 224.7 kB / 0.5636 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.3937, allocations: 0.8304 MB / 0.5644 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.3968, allocations: 2.853 MB / 0.5672 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/0.3995, allocations: 192 kB / 0.5674 GB, free: 4.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003555/0.3999, allocations: 220 kB / 0.5676 GB, free: 4.613 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (445): * Single equations (assignments): 440 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002486/0.4024, allocations: 1.577 MB / 0.5691 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003043/0.4027, allocations: 213.2 kB / 0.5693 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00307/0.4058, allocations: 1.936 MB / 0.5712 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001002/0.4059, allocations: 27.97 kB / 0.5712 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4059, allocations: 7.938 kB / 0.5713 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.4059, allocations: 7.969 kB / 0.5713 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008733/0.4147, allocations: 5.81 MB / 0.5769 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.4147, allocations: 7.984 kB / 0.5769 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008521/0.4156, allocations: 219.7 kB / 0.5772 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003594/0.4159, allocations: 137.1 kB / 0.5773 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-05/0.416, allocations: 24 kB / 0.5773 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002322/0.4184, allocations: 2.518 MB / 0.5798 GB, free: 7.832 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.4184, allocations: 4 kB / 0.5798 GB, free: 7.828 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004135/0.4225, allocations: 3.064 MB / 0.5828 GB, free: 4.703 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005394/0.4231, allocations: 290.3 kB / 0.583 GB, free: 4.398 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.4233, allocations: 27.98 kB / 0.5831 GB, free: 4.371 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007685/0.4241, allocations: 67.92 kB / 0.5831 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.4243, allocations: 96.81 kB / 0.5832 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.604e-05/0.4244, allocations: 51.97 kB / 0.5833 GB, free: 4.156 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.4266, allocations: 1.6 MB / 0.5848 GB, free: 2.539 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4266, allocations: 0 / 0.5848 GB, free: 2.539 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002667/0.4292, allocations: 0.6563 MB / 0.5855 GB, free: 1.883 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute.phi,revolute.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 (109): * Single equations (assignments): 104 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2018/0.6311, allocations: 3.687 MB / 0.5891 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005864/0.637, allocations: 3.037 MB / 0.592 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.637, allocations: 0 / 0.592 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.6388, allocations: 1.009 MB / 0.593 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.6411, allocations: 406.7 kB / 0.5934 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03903/0.6801, allocations: 26.63 MB / 0.6194 GB, free: 92.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002566/0.6827, allocations: 2.596 MB / 0.622 GB, free: 91.58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00239/0.6852, allocations: 1.143 MB / 0.6231 GB, free: 91.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/0.6869, allocations: 1.296 MB / 0.6243 GB, free: 90.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6869, allocations: 0 / 0.6243 GB, free: 90.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07108/0.758, allocations: 45.58 MB / 0.6689 GB, free: 47.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/15.16, allocations: 0 / 0.6689 GB, free: 47.8 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)