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.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.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.007526/0.007526, allocations: 98.67 kB / 15.73 MB, free: 5.988 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.001854/0.001854, allocations: 196.7 kB / 16.68 MB, free: 5.918 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1806/0.1806, allocations: 9.108 MB / 299.6 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 60.12 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2569, allocations: 51.44 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.008611/0.2655, allocations: 8.424 MB / 474 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005524/0.2711, allocations: 2.609 MB / 476.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001694/0.2728, allocations: 34.19 kB / 476.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.274, allocations: 365.2 kB / 477 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003992/0.2781, allocations: 1.419 MB / 478.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006427/0.2787, allocations: 144 kB / 478.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003831/0.2826, allocations: 2.537 MB / 481.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.284, allocations: 0.9181 MB / 482 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001661/0.2857, allocations: 0.9128 MB / 482.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002107/0.2878, allocations: 1.306 MB / 484.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008698/0.2887, allocations: 233.2 kB / 484.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002127/0.2908, allocations: 0.8304 MB / 485.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001505/0.2923, allocations: 1.235 MB / 486.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002921/0.2953, allocations: 1.585 MB / 488.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006259/0.3015, allocations: 5.03 MB / 493.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3016, allocations: 1.219 kB / 493.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3016, allocations: 0 / 493.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001946/0.3018, allocations: 0 / 493.1 MB, free: 15.77 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01354/0.3153, allocations: 4.36 MB / 497.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3154, allocations: 8.031 kB / 497.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001645/0.317, allocations: 0.5471 MB / 498.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006911/0.324, allocations: 1.763 MB / 499.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002918/0.3269, allocations: 1.357 MB / 0.4894 GB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.3271, allocations: 151.8 kB / 0.4896 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007496/0.3278, allocations: 199.8 kB / 0.4898 GB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.3418, allocations: 8.255 MB / 0.4978 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.342, allocations: 19.81 kB / 0.4978 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006894/0.3427, allocations: 99.8 kB / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003182/0.3459, allocations: 1.907 MB / 0.4998 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01473/0.3606, allocations: 7.418 MB / 0.507 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04032/0.401, allocations: 25.54 MB / 0.532 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006691/0.4077, allocations: 2.61 MB / 0.5345 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.4093, allocations: 0.9157 MB / 0.5354 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007331/0.4167, allocations: 5.098 MB / 0.5404 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.4167, allocations: 47.56 kB / 0.5404 GB, free: 2.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.636e-06/0.4167, allocations: 0 / 0.5404 GB, free: 2.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01317/0.4299, allocations: 5.452 MB / 0.5458 GB, free: 13.13 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.43, allocations: 68.72 kB / 0.5458 GB, free: 13.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004706/0.4347, allocations: 2.618 MB / 0.5484 GB, free: 10.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000163/0.4349, allocations: 53.69 kB / 0.5484 GB, free: 10.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/0.4365, allocations: 2.093 MB / 0.5505 GB, free: 8.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006921/0.4372, allocations: 0.6514 MB / 0.5511 GB, free: 7.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001456/0.4386, allocations: 0.8257 MB / 0.5519 GB, free: 6.719 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.4388, allocations: 301.1 kB / 0.5522 GB, free: 6.422 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002433/0.4412, allocations: 1.371 MB / 0.5536 GB, free: 5.043 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004614/0.4458, allocations: 3.633 MB / 0.5571 GB, free: 292 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007113/0.453, allocations: 5.413 MB / 0.5624 GB, free: 9.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.412e-05/0.4531, allocations: 27.94 kB / 0.5624 GB, free: 9.742 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009395/0.4625, allocations: 5.215 MB / 0.5675 GB, free: 4.523 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.979e-05/0.4626, allocations: 48.19 kB / 0.5676 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.4627, allocations: 76 kB / 0.5676 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/0.4637, allocations: 358.3 kB / 0.568 GB, free: 4.051 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.4666, allocations: 0.9162 MB / 0.5689 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005657/0.4722, allocations: 4.173 MB / 0.5729 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002923/0.4752, allocations: 203.8 kB / 0.5731 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000606/0.4758, allocations: 251.9 kB / 0.5734 GB, free: 14.37 MB / 462.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 (498): * Single equations (assignments): 493 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003073/0.4789, allocations: 1.607 MB / 0.5749 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005124/0.4794, allocations: 229 kB / 0.5752 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.4837, allocations: 2.342 MB / 0.5775 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001143/0.4839, allocations: 27.98 kB / 0.5775 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.4839, allocations: 4 kB / 0.5775 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.4839, allocations: 11.97 kB / 0.5775 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.4967, allocations: 6.452 MB / 0.5838 GB, free: 3.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.4967, allocations: 4 kB / 0.5838 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009377/0.4976, allocations: 239.7 kB / 0.584 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006818/0.4983, allocations: 263.5 kB / 0.5843 GB, free: 3.031 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.4985, allocations: 32 kB / 0.5843 GB, free: 3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2023/0.7008, allocations: 3.407 MB / 0.5876 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.7009, allocations: 4.25 kB / 0.5876 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005254/0.7061, allocations: 3.605 MB / 0.5912 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006104/0.7068, allocations: 304.5 kB / 0.5915 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/0.707, allocations: 31.73 kB / 0.5915 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008014/0.7078, allocations: 73.91 kB / 0.5916 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.708, allocations: 105.9 kB / 0.5917 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.7081, allocations: 52.17 kB / 0.5917 GB, free: 109 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002689/0.7108, allocations: 1.682 MB / 0.5933 GB, free: 108.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.863e-06/0.7109, allocations: 0 / 0.5933 GB, free: 108.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003151/0.714, allocations: 0.724 MB / 0.5941 GB, free: 108.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (132): * Single equations (assignments): 127 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005378/0.7194, allocations: 4.249 MB / 0.5982 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005248/0.7247, allocations: 3.427 MB / 0.6016 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.7247, allocations: 1.125 kB / 0.6016 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.7263, allocations: 1.17 MB / 0.6027 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.7284, allocations: 410.8 kB / 0.6031 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0362/0.7646, allocations: 29.16 MB / 0.6316 GB, free: 84.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003299/0.7679, allocations: 2.614 MB / 0.6341 GB, free: 82.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00277/0.7707, allocations: 1.271 MB / 0.6354 GB, free: 81.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/0.7723, allocations: 1.347 MB / 0.6367 GB, free: 79.76 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.7723, allocations: 0 / 0.6367 GB, free: 79.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07382/0.8462, allocations: 50.24 MB / 0.6857 GB, free: 29.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/16.16, allocations: 8 kB / 0.6857 GB, free: 29.74 MB / 462.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/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)