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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0007628/0.000763, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009468/0.0009467, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.2 MB / 240 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.178/0.178, allocations: 9.112 MB / 300.2 MB, free: 2.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003092, allocations: 8 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 52.43 MB / 415.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2337/0.3372, allocations: 40.22 MB / 455.9 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.3545, allocations: 8.915 MB / 464.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008138/0.3627, allocations: 166.4 kB / 464.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006327/0.369, allocations: 1.986 MB / 466.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01768/0.3868, allocations: 6.916 MB / 473.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.3888, allocations: 176.1 kB / 474 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004121/0.3929, allocations: 3.465 MB / 477.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.3946, allocations: 0.9995 MB / 478.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.3963, allocations: 1.001 MB / 479.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00222/0.3985, allocations: 1.596 MB / 481.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005409/0.3991, allocations: 165.3 kB / 481.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001634/0.4007, allocations: 0.6866 MB / 481.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.4023, allocations: 1.373 MB / 483.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008485/0.4032, allocations: 0.7779 MB / 484.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005965/0.4091, allocations: 4.447 MB / 488.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4092, allocations: 1.344 kB / 488.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4092, allocations: 4 kB / 488.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002454/0.4094, allocations: 0 / 488.5 MB, free: 4.453 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.01076/0.4202, allocations: 3.828 MB / 492.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.4203, allocations: 8.719 kB / 492.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00121/0.4215, allocations: 0.6704 MB / 493 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00713/0.4286, allocations: 1.958 MB / 495 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003706/0.4324, allocations: 1.568 MB / 496.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.4325, allocations: 192.2 kB / 496.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006365/0.4332, allocations: 252.2 kB / 497 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/0.4504, allocations: 9.767 MB / 0.4949 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.4506, allocations: 39.66 kB / 0.4949 GB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000406/0.451, allocations: 115.8 kB / 0.495 GB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003877/0.4549, allocations: 2.299 MB / 0.4973 GB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.4721, allocations: 8.44 MB / 0.5055 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05175/0.5239, allocations: 30.71 MB / 0.5355 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006612/0.5305, allocations: 2.787 MB / 0.5382 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001887/0.5325, allocations: 1.052 MB / 0.5392 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009347/0.5418, allocations: 5.844 MB / 0.545 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.5419, allocations: 47.86 kB / 0.545 GB, free: 3.641 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 4.498e-06/0.5419, allocations: 8 kB / 0.545 GB, free: 3.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01815/0.5601, allocations: 8.244 MB / 0.5531 GB, free: 11.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.5602, allocations: 64.72 kB / 0.5531 GB, free: 11.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006018/0.5662, allocations: 3.186 MB / 0.5562 GB, free: 8.035 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003083/0.5666, allocations: 49.7 kB / 0.5563 GB, free: 7.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001991/0.5686, allocations: 2.601 MB / 0.5588 GB, free: 5.344 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008761/0.5695, allocations: 0.6747 MB / 0.5595 GB, free: 4.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004573/0.5699, allocations: 96 kB / 0.5596 GB, free: 4.566 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0004193/0.5704, allocations: 0.5087 MB / 0.5601 GB, free: 4.051 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003/0.5734, allocations: 1.548 MB / 0.5616 GB, free: 2.496 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004696/0.5781, allocations: 4.334 MB / 0.5658 GB, free: 12.78 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004245/0.5824, allocations: 2.564 MB / 0.5683 GB, free: 10.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.981e-05/0.5825, allocations: 28 kB / 0.5683 GB, free: 10.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01131/0.5938, allocations: 5.992 MB / 0.5742 GB, free: 4.191 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.5939, allocations: 48 kB / 0.5742 GB, free: 4.145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001403/0.5941, allocations: 96 kB / 0.5743 GB, free: 4.051 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009117/0.595, allocations: 399.4 kB / 0.5747 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003542/0.5986, allocations: 1.088 MB / 0.5758 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2203/0.8189, allocations: 3.398 MB / 0.5791 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/0.8224, allocations: 247.1 kB / 0.5793 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004824/0.8229, allocations: 297.8 kB / 0.5796 GB, free: 119.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003311/0.8262, allocations: 1.882 MB / 0.5814 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/0.8266, allocations: 275.2 kB / 0.5817 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.8302, allocations: 2.422 MB / 0.5841 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001402/0.8304, allocations: 39.72 kB / 0.5841 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.8304, allocations: 10.16 kB / 0.5841 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.8304, allocations: 6.797 kB / 0.5841 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009416/0.8398, allocations: 6.884 MB / 0.5909 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.8399, allocations: 6.5 kB / 0.5909 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009153/0.8408, allocations: 259 kB / 0.5911 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005557/0.8413, allocations: 251.2 kB / 0.5913 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.478e-05/0.8414, allocations: 36.19 kB / 0.5914 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00246/0.8439, allocations: 2.72 MB / 0.594 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.8439, allocations: 6.188 kB / 0.594 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004498/0.8484, allocations: 3.718 MB / 0.5977 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007467/0.8492, allocations: 362.5 kB / 0.598 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005482/0.8497, allocations: 39.78 kB / 0.5981 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.851, allocations: 85.39 kB / 0.5981 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.8512, allocations: 108.1 kB / 0.5982 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.8513, allocations: 58.84 kB / 0.5983 GB, free: 114.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00295/0.8542, allocations: 2.015 MB / 0.6003 GB, free: 113.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8542, allocations: 0 / 0.6003 GB, free: 113.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003773/0.858, allocations: 0.8412 MB / 0.6011 GB, free: 113.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004853/0.8629, allocations: 4.381 MB / 0.6054 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006079/0.869, allocations: 3.815 MB / 0.6091 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.869, allocations: 0 / 0.6091 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.8708, allocations: 1.217 MB / 0.6103 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/0.8746, allocations: 430.4 kB / 0.6107 GB, free: 109.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05292/0.9276, allocations: 26.13 MB / 0.6362 GB, free: 92.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006133/0.9338, allocations: 3.008 MB / 0.6391 GB, free: 91.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003832/0.9376, allocations: 1.429 MB / 0.6405 GB, free: 90.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002432/0.9401, allocations: 1.688 MB / 0.6422 GB, free: 89.12 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.9401, allocations: 0.5625 kB / 0.6422 GB, free: 89.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08505/1.025, allocations: 63.02 MB / 0.7037 GB, free: 29.03 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/1.025, allocations: 207.4 kB / 0.7039 GB, free: 28.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.864/3.889, allocations: 7.938 kB / 0.7039 GB, free: 28.77 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/linux/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) Environment - environmentSimulation: