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.00552/0.00552, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.001282/0.001282, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1656/0.1656, allocations: 9.106 MB / 299.6 MB, free: 1.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 67.89 kB / 414.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2738, allocations: 51.43 MB / 465.6 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.008356/0.2822, allocations: 8.513 MB / 474.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.2874, allocations: 2.608 MB / 476.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.2886, allocations: 33.09 kB / 476.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008878/0.2895, allocations: 368.5 kB / 477.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.2927, allocations: 1.378 MB / 478.5 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.2931, allocations: 150.9 kB / 478.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002558/0.2957, allocations: 2.524 MB / 481.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.2967, allocations: 1.013 MB / 482.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.2979, allocations: 0.9103 MB / 483.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.2992, allocations: 1.323 MB / 484.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000395/0.2997, allocations: 238.5 kB / 484.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.3012, allocations: 0.8325 MB / 485.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.3023, allocations: 1.221 MB / 486.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.3037, allocations: 1.59 MB / 488.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005384/0.3091, allocations: 5.085 MB / 493.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3092, allocations: 0 / 493.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3092, allocations: 0 / 493.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001151/0.3093, allocations: 1.219 kB / 493.3 MB, free: 15.86 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.0107/0.32, allocations: 4.373 MB / 497.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3201, allocations: 8.031 kB / 497.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000844/0.3209, allocations: 0.5511 MB / 498.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006579/0.3275, allocations: 1.781 MB / 0.4883 GB, free: 9.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.3307, allocations: 1.351 MB / 0.4897 GB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.3308, allocations: 148 kB / 0.4898 GB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004408/0.3313, allocations: 203.9 kB / 0.49 GB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/0.3459, allocations: 8.196 MB / 0.498 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.898e-05/0.346, allocations: 15.88 kB / 0.498 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.3464, allocations: 95.86 kB / 0.4981 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00335/0.3497, allocations: 1.919 MB / 0.5 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.3657, allocations: 7.427 MB / 0.5072 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03647/0.4022, allocations: 24.85 MB / 0.5315 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005449/0.4077, allocations: 2.413 MB / 0.5339 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.4092, allocations: 0.8683 MB / 0.5347 GB, free: 9.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006985/0.4162, allocations: 4.428 MB / 0.539 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.4163, allocations: 43.56 kB / 0.5391 GB, free: 4.273 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 4.419e-06/0.4163, allocations: 4 kB / 0.5391 GB, free: 4.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01138/0.4277, allocations: 4.701 MB / 0.5437 GB, free: 15.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.4278, allocations: 64.41 kB / 0.5437 GB, free: 15.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003791/0.4316, allocations: 2.496 MB / 0.5462 GB, free: 12.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.4317, allocations: 41.7 kB / 0.5462 GB, free: 12.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.4334, allocations: 2.157 MB / 0.5483 GB, free: 10.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005487/0.4339, allocations: 0.562 MB / 0.5489 GB, free: 10.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/0.435, allocations: 0.7545 MB / 0.5496 GB, free: 9.402 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4351, allocations: 301.1 kB / 0.5499 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.4372, allocations: 1.237 MB / 0.5511 GB, free: 7.867 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003742/0.4409, allocations: 3.298 MB / 0.5543 GB, free: 3.559 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006283/0.4472, allocations: 4.899 MB / 0.5591 GB, free: 13.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/0.4473, allocations: 24 kB / 0.5591 GB, free: 13.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.007898/0.4552, allocations: 4.646 MB / 0.5637 GB, free: 8.973 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.23e-05/0.4553, allocations: 40.06 kB / 0.5637 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.787e-05/0.4554, allocations: 72 kB / 0.5638 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005818/0.456, allocations: 224.7 kB / 0.564 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/0.4584, allocations: 0.8265 MB / 0.5648 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003492/0.4619, allocations: 2.854 MB / 0.5676 GB, free: 4.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002561/0.4645, allocations: 183.9 kB / 0.5677 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000331/0.4648, allocations: 228 kB / 0.568 GB, free: 4.414 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.002619/0.4675, allocations: 1.584 MB / 0.5695 GB, free: 2.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003667/0.4678, allocations: 222.5 kB / 0.5697 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003444/0.4713, allocations: 1.932 MB / 0.5716 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/0.4714, allocations: 27.97 kB / 0.5716 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4714, allocations: 7.938 kB / 0.5716 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.4715, allocations: 7.922 kB / 0.5716 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.4825, allocations: 5.818 MB / 0.5773 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.4825, allocations: 4 kB / 0.5773 GB, free: 10.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009003/0.4834, allocations: 215.7 kB / 0.5775 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004085/0.4838, allocations: 141.1 kB / 0.5777 GB, free: 10.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.182e-05/0.4839, allocations: 27.98 kB / 0.5777 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.4869, allocations: 2.522 MB / 0.5802 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.4869, allocations: 7.938 kB / 0.5802 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.4918, allocations: 3.077 MB / 0.5832 GB, free: 4.465 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007956/0.4927, allocations: 303.5 kB / 0.5835 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.4929, allocations: 24 kB / 0.5835 GB, free: 4.125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00078/0.4937, allocations: 71.84 kB / 0.5836 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.4939, allocations: 92.83 kB / 0.5836 GB, free: 3.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4941, allocations: 47.97 kB / 0.5837 GB, free: 3.914 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.4967, allocations: 1.603 MB / 0.5853 GB, free: 2.293 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4967, allocations: 0 / 0.5853 GB, free: 2.293 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003019/0.4998, allocations: 0.6484 MB / 0.5859 GB, free: 1.645 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.216/0.7158, allocations: 3.703 MB / 0.5895 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005439/0.7213, allocations: 3.028 MB / 0.5925 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.7213, allocations: 4.719 kB / 0.5925 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.7228, allocations: 1.01 MB / 0.5935 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.725, allocations: 406 kB / 0.5938 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03975/0.7648, allocations: 26.76 MB / 0.62 GB, free: 92.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/0.7671, allocations: 2.594 MB / 0.6225 GB, free: 91.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002534/0.7697, allocations: 1.129 MB / 0.6236 GB, free: 91.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/0.7714, allocations: 1.305 MB / 0.6249 GB, free: 90.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7715, allocations: 0 / 0.6249 GB, free: 90.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08674/0.8582, allocations: 44.93 MB / 0.6688 GB, free: 48.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/15.94, allocations: 0 / 0.6688 GB, free: 48.19 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)