Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.000899/0.000899, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005367/0.005367, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1496/0.1496, allocations: 9.1 MB / 300.5 MB, free: 2.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 8.281 kB / 363.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08192, allocations: 52.43 MB / 416.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.1797/0.2617, allocations: 43.21 MB / 459.4 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.2773, allocations: 9.233 MB / 468.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006021/0.2834, allocations: 166.2 kB / 468.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.2844, allocations: 376.1 kB / 469.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00318/0.2876, allocations: 1.549 MB / 470.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003799/0.288, allocations: 150.9 kB / 470.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003085/0.2911, allocations: 4.33 MB / 475.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009448/0.2921, allocations: 1.017 MB / 476.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008383/0.2929, allocations: 0.9452 MB / 477.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/0.2944, allocations: 1.609 MB / 478.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003617/0.2947, allocations: 164.4 kB / 479 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.2962, allocations: 0.8002 MB / 479.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.2974, allocations: 1.415 MB / 481.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.2985, allocations: 1.857 MB / 483 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004954/0.3035, allocations: 5.462 MB / 488.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3035, allocations: 0 / 488.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3035, allocations: 0 / 488.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001374/0.3037, allocations: 1.125 kB / 488.5 MB, free: 2.629 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.008858/0.3125, allocations: 3.786 MB / 492.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3126, allocations: 15.66 kB / 492.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009038/0.3135, allocations: 0.6677 MB / 493 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007463/0.321, allocations: 1.959 MB / 494.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.3238, allocations: 1.585 MB / 496.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.324, allocations: 195.6 kB / 496.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005217/0.3245, allocations: 249.8 kB / 496.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.3389, allocations: 9.793 MB / 0.4949 GB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.438e-05/0.3391, allocations: 35.66 kB / 0.4949 GB, free: 8.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003536/0.3394, allocations: 115.8 kB / 0.495 GB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003752/0.3432, allocations: 2.299 MB / 0.4973 GB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01505/0.3582, allocations: 8.487 MB / 0.5055 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04015/0.3984, allocations: 30.73 MB / 0.5356 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006666/0.4051, allocations: 2.802 MB / 0.5383 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.407, allocations: 1.049 MB / 0.5393 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008644/0.4156, allocations: 5.843 MB / 0.545 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.4157, allocations: 43.88 kB / 0.5451 GB, free: 3.812 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 3.818e-06/0.4157, allocations: 0 / 0.5451 GB, free: 3.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01716/0.4329, allocations: 8.276 MB / 0.5531 GB, free: 11.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.433, allocations: 64.72 kB / 0.5532 GB, free: 11.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005359/0.4383, allocations: 3.194 MB / 0.5563 GB, free: 8.172 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.4385, allocations: 53.7 kB / 0.5564 GB, free: 8.113 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.4402, allocations: 2.601 MB / 0.5589 GB, free: 5.477 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000672/0.4409, allocations: 0.6824 MB / 0.5596 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006371/0.4415, allocations: 412.7 kB / 0.56 GB, free: 4.375 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.4416, allocations: 313 kB / 0.5603 GB, free: 4.066 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/0.4444, allocations: 1.567 MB / 0.5618 GB, free: 2.492 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004329/0.4487, allocations: 4.353 MB / 0.5661 GB, free: 12.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007064/0.4558, allocations: 6.383 MB / 0.5723 GB, free: 5.004 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.132e-05/0.4559, allocations: 28 kB / 0.5723 GB, free: 4.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.1655/0.6214, allocations: 6.029 MB / 0.5782 GB, free: 120.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.016e-05/0.6215, allocations: 45.25 kB / 0.5782 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-05/0.6216, allocations: 101.6 kB / 0.5783 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007547/0.6224, allocations: 375.2 kB / 0.5787 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003037/0.6254, allocations: 1.093 MB / 0.5798 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.6286, allocations: 3.399 MB / 0.5831 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003051/0.6317, allocations: 251.9 kB / 0.5833 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/0.632, allocations: 295.3 kB / 0.5836 GB, free: 119.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002605/0.6346, allocations: 1.89 MB / 0.5855 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.6349, allocations: 271 kB / 0.5857 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.6385, allocations: 2.427 MB / 0.5881 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001695/0.6386, allocations: 46.53 kB / 0.5881 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6387, allocations: 3.188 kB / 0.5881 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.6387, allocations: 7.312 kB / 0.5881 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008907/0.6476, allocations: 6.91 MB / 0.5949 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.6476, allocations: 3.25 kB / 0.5949 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000908/0.6485, allocations: 259.8 kB / 0.5951 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005772/0.6491, allocations: 244.3 kB / 0.5954 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/0.6492, allocations: 31.98 kB / 0.5954 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002321/0.6515, allocations: 2.737 MB / 0.5981 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.6516, allocations: 3.156 kB / 0.5981 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.6559, allocations: 3.732 MB / 0.6017 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005516/0.6564, allocations: 363.3 kB / 0.6021 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/0.6567, allocations: 32.61 kB / 0.6021 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009318/0.6576, allocations: 89.59 kB / 0.6022 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.6578, allocations: 101.5 kB / 0.6023 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-05/0.6579, allocations: 52.17 kB / 0.6023 GB, free: 113.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002344/0.6603, allocations: 2.041 MB / 0.6043 GB, free: 112.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6603, allocations: 0 / 0.6043 GB, free: 112.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002999/0.6633, allocations: 0.8487 MB / 0.6052 GB, free: 112.6 MB / 446.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,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004913/0.6682, allocations: 4.389 MB / 0.6094 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005577/0.6738, allocations: 3.842 MB / 0.6132 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6738, allocations: 0.9062 kB / 0.6132 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001584/0.6754, allocations: 1.22 MB / 0.6144 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/0.6786, allocations: 436.7 kB / 0.6148 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.052/0.7306, allocations: 39.98 MB / 0.6538 GB, free: 74.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/0.734, allocations: 3.008 MB / 0.6568 GB, free: 72.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003121/0.7372, allocations: 1.432 MB / 0.6582 GB, free: 71.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/0.7388, allocations: 1.694 MB / 0.6598 GB, free: 69.96 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7388, allocations: 0 / 0.6598 GB, free: 69.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06447/0.8033, allocations: 55.83 MB / 0.7144 GB, free: 14.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.8035, allocations: 227 kB / 0.7146 GB, free: 14.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.885/3.688, allocations: 0 / 0.7146 GB, free: 14.21 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)