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: translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 117.7 kB / 16.37 MB, free: 6 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.001122/0.001122, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04389/0.04389, allocations: 9.114 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.91 kB / 363.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2232, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.007249/0.2305, allocations: 8.513 MB / 423.3 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004329/0.2348, allocations: 2.617 MB / 425.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.236, allocations: 31.94 kB / 426 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008241/0.2368, allocations: 365.5 kB / 426.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00281/0.2397, allocations: 1.389 MB / 427.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.2401, allocations: 147.8 kB / 427.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002136/0.2423, allocations: 2.53 MB / 430.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009195/0.2432, allocations: 1.002 MB / 431.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.2444, allocations: 0.926 MB / 432.3 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001658/0.246, allocations: 1.315 MB / 433.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004408/0.2465, allocations: 244 kB / 433.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00179/0.2483, allocations: 0.8387 MB / 434.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.2495, allocations: 1.212 MB / 435.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.251, allocations: 1.592 MB / 437.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00652/0.2575, allocations: 5.049 MB / 442.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.2575, allocations: 0 / 442.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2575, allocations: 0 / 442.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.2577, allocations: 0 / 442.6 MB, free: 13.01 MB / 318.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.01379/0.2715, allocations: 4.279 MB / 446.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.2715, allocations: 8.031 kB / 446.8 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.2819, allocations: 1.771 MB / 448.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003848/0.2858, allocations: 1.343 MB / 450 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.286, allocations: 148 kB / 450.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007833/0.2868, allocations: 196.1 kB / 450.3 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.3024, allocations: 8.196 MB / 458.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-05/0.3025, allocations: 23.75 kB / 458.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005024/0.303, allocations: 91.86 kB / 458.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002979/0.306, allocations: 1.919 MB / 460.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.3209, allocations: 7.427 MB / 468 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03577/0.3567, allocations: 24.8 MB / 492.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0051/0.3618, allocations: 2.41 MB / 495.2 MB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/0.3633, allocations: 0.8598 MB / 496 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006847/0.3701, allocations: 4.44 MB / 0.4887 GB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.3702, allocations: 43.56 kB / 0.4888 GB, free: 1.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 3.156e-06/0.3702, allocations: 0 / 0.4888 GB, free: 1.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01057/0.3808, allocations: 4.652 MB / 0.4933 GB, free: 12.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.3809, allocations: 60.41 kB / 0.4934 GB, free: 12.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004149/0.385, allocations: 2.488 MB / 0.4958 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.3851, allocations: 45.7 kB / 0.4958 GB, free: 10.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.3866, allocations: 2.074 MB / 0.4979 GB, free: 8.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005155/0.3872, allocations: 0.5282 MB / 0.4984 GB, free: 7.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/0.3883, allocations: 0.7577 MB / 0.4991 GB, free: 6.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3884, allocations: 301.1 kB / 0.4994 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001966/0.3904, allocations: 1.233 MB / 0.5006 GB, free: 5.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/0.3936, allocations: 3.306 MB / 0.5038 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2271/0.6207, allocations: 4.876 MB / 0.5086 GB, free: 82.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.414e-05/0.6208, allocations: 20.62 kB / 0.5086 GB, free: 82.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009359/0.6302, allocations: 4.638 MB / 0.5132 GB, free: 80.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.224e-05/0.6303, allocations: 36.44 kB / 0.5132 GB, free: 80.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001768/0.6305, allocations: 72.31 kB / 0.5133 GB, free: 80.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007395/0.6312, allocations: 233.6 kB / 0.5135 GB, free: 80.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/0.6338, allocations: 0.8325 MB / 0.5143 GB, free: 80.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/0.6367, allocations: 2.853 MB / 0.5171 GB, free: 78.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/0.6393, allocations: 188.8 kB / 0.5173 GB, free: 78.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004732/0.6398, allocations: 226 kB / 0.5175 GB, free: 78.22 MB / 382.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.002138/0.6419, allocations: 1.575 MB / 0.519 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/0.6422, allocations: 207.2 kB / 0.5192 GB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.6449, allocations: 1.941 MB / 0.5211 GB, free: 76.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.888e-05/0.645, allocations: 31.45 kB / 0.5211 GB, free: 76.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.645, allocations: 0 / 0.5211 GB, free: 76.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.645, allocations: 5.156 kB / 0.5211 GB, free: 76.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007684/0.6527, allocations: 5.817 MB / 0.5268 GB, free: 73.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.6527, allocations: 0 / 0.5268 GB, free: 73.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/0.6535, allocations: 223 kB / 0.527 GB, free: 73.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003265/0.6539, allocations: 131.3 kB / 0.5272 GB, free: 73.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.6539, allocations: 34.48 kB / 0.5272 GB, free: 73.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/0.6559, allocations: 2.513 MB / 0.5297 GB, free: 70.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6559, allocations: 4 kB / 0.5297 GB, free: 70.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.6592, allocations: 3.062 MB / 0.5326 GB, free: 68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005101/0.6597, allocations: 287 kB / 0.5329 GB, free: 67.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.66, allocations: 27.28 kB / 0.5329 GB, free: 67.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.6607, allocations: 79.91 kB / 0.533 GB, free: 67.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.6609, allocations: 84.83 kB / 0.5331 GB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.476e-05/0.661, allocations: 43.98 kB / 0.5331 GB, free: 67.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001727/0.6627, allocations: 1.603 MB / 0.5347 GB, free: 65.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6627, allocations: 3.938 kB / 0.5347 GB, free: 65.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002317/0.665, allocations: 0.6608 MB / 0.5354 GB, free: 65.23 MB / 382.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.0002938/0.6653, allocations: 154.5 kB / 0.5355 GB, free: 65.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.6691, allocations: 3.024 MB / 0.5385 GB, free: 62.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.6692, allocations: 0 / 0.5385 GB, free: 62.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.6702, allocations: 1.009 MB / 0.5394 GB, free: 61.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.6717, allocations: 413 kB / 0.5398 GB, free: 60.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008162/0.6799, allocations: 6.324 MB / 0.546 GB, free: 54.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.682, allocations: 2.594 MB / 0.5485 GB, free: 51.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002145/0.6841, allocations: 1.133 MB / 0.5497 GB, free: 50.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.6845, allocations: 163.4 kB / 0.5498 GB, free: 50.34 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6845, allocations: 0 / 0.5498 GB, free: 50.34 MB / 382.1 MB Notification: Performance of Templates: time 0.03535/0.7198, allocations: 22.82 MB / 0.5721 GB, free: 27.72 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)