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.0009477/0.0009475, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009349/0.000935, allocations: 177.3 kB / 15.94 MB, free: 228 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.445/1.445, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1947/0.1947, allocations: 9.106 MB / 300.1 MB, free: 2.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003654, allocations: 8 kB / 363.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1164, allocations: 52.42 MB / 415.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2623/0.3787, allocations: 37.84 MB / 453.4 MB, free: 20.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0257/0.4044, allocations: 9.334 MB / 462.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01077/0.4152, allocations: 163.6 kB / 462.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007566/0.4228, allocations: 1.88 MB / 464.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02052/0.4434, allocations: 5.594 MB / 470.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.4457, allocations: 171.6 kB / 470.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005247/0.4509, allocations: 1.777 MB / 472.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002115/0.4531, allocations: 1.011 MB / 473.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.4547, allocations: 0.8406 MB / 474.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001586/0.4563, allocations: 1.204 MB / 475.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005122/0.4568, allocations: 162.6 kB / 475.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.4585, allocations: 0.6769 MB / 476.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001392/0.4599, allocations: 1.285 MB / 477.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009495/0.4609, allocations: 0.7816 MB / 478.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007623/0.4685, allocations: 4.445 MB / 482.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4686, allocations: 0 / 482.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4686, allocations: 0 / 482.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002834/0.4689, allocations: 0 / 482.7 MB, free: 6.707 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.01406/0.4829, allocations: 3.89 MB / 486.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.483, allocations: 12.86 kB / 486.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003668/0.4867, allocations: 0.6766 MB / 487.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.4975, allocations: 2.328 MB / 489.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005585/0.5031, allocations: 1.556 MB / 491.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/0.5034, allocations: 190.5 kB / 491.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/0.5055, allocations: 255.5 kB / 491.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/0.5304, allocations: 9.802 MB / 0.4896 GB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.5306, allocations: 27.72 kB / 0.4896 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004307/0.531, allocations: 119.8 kB / 0.4898 GB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004099/0.5351, allocations: 2.306 MB / 0.492 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02164/0.5568, allocations: 8.494 MB / 0.5003 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05517/0.612, allocations: 30.7 MB / 0.5303 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006912/0.619, allocations: 2.779 MB / 0.533 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002062/0.6211, allocations: 2.04 MB / 0.535 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.6211, allocations: 51.83 kB / 0.535 GB, free: 13.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=181): time 5.33e-06/0.6211, allocations: 0 / 0.535 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=203): time 0.0237/0.6448, allocations: 9.582 MB / 0.5444 GB, free: 3.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.6449, allocations: 73.41 kB / 0.5445 GB, free: 3.855 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005197/0.6501, allocations: 3.086 MB / 0.5475 GB, free: 0.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003456/0.6505, allocations: 61.69 kB / 0.5475 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.6524, allocations: 2.54 MB / 0.55 GB, free: 14.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001073/0.6535, allocations: 0.7478 MB / 0.5508 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.6537, allocations: 99.98 kB / 0.5509 GB, free: 13.25 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003581/0.6541, allocations: 0.505 MB / 0.5513 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00288/0.657, allocations: 1.583 MB / 0.5529 GB, free: 11.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004946/0.6619, allocations: 4.341 MB / 0.5571 GB, free: 5.426 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004321/0.6663, allocations: 2.589 MB / 0.5597 GB, free: 2.844 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.124e-05/0.6664, allocations: 28 kB / 0.5597 GB, free: 2.816 MB / 430.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01191/0.6783, allocations: 6.064 MB / 0.5656 GB, free: 12.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-05/0.6784, allocations: 51.83 kB / 0.5657 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/0.6785, allocations: 100.2 kB / 0.5658 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009004/0.6794, allocations: 386.7 kB / 0.5661 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/0.6836, allocations: 1.111 MB / 0.5672 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004648/0.6883, allocations: 3.481 MB / 0.5706 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004725/0.693, allocations: 251.9 kB / 0.5708 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/0.6942, allocations: 292 kB / 0.5711 GB, free: 6.957 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 445 * 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 (603): * Single equations (assignments): 597 * 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.005854/0.7001, allocations: 1.893 MB / 0.573 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008717/0.701, allocations: 280.5 kB / 0.5732 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006278/0.7072, allocations: 2.815 MB / 0.576 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001885/0.7075, allocations: 51.95 kB / 0.576 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.7075, allocations: 4 kB / 0.576 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/0.7075, allocations: 7.969 kB / 0.576 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.277/0.9846, allocations: 7.643 MB / 0.5835 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.9846, allocations: 7.875 kB / 0.5835 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.9857, allocations: 289.2 kB / 0.5838 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006642/0.9864, allocations: 252.7 kB / 0.584 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.9865, allocations: 43.31 kB / 0.5841 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.9894, allocations: 2.811 MB / 0.5868 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.9894, allocations: 10.61 kB / 0.5868 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005625/0.995, allocations: 4.664 MB / 0.5914 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.9961, allocations: 375.4 kB / 0.5917 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003684/0.9965, allocations: 37.67 kB / 0.5918 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.9976, allocations: 89.36 kB / 0.5919 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.9978, allocations: 128 kB / 0.592 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.9979, allocations: 63.5 kB / 0.592 GB, free: 117.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002942/1.001, allocations: 1.98 MB / 0.594 GB, free: 117 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.001, allocations: 2.875 kB / 0.594 GB, free: 117 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004296/1.005, allocations: 0.8517 MB / 0.5948 GB, free: 116.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (162): * Single equations (assignments): 156 * 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.006029/1.011, allocations: 6.991 MB / 0.6016 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00848/1.02, allocations: 3.93 MB / 0.6055 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/1.02, allocations: 3.156 kB / 0.6055 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/1.022, allocations: 1.302 MB / 0.6068 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00287/1.025, allocations: 426.8 kB / 0.6072 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07449/1.1, allocations: 93.32 MB / 0.6983 GB, free: 26.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004098/1.104, allocations: 3.092 MB / 0.7013 GB, free: 24.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004239/1.108, allocations: 1.493 MB / 0.7028 GB, free: 24.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002609/1.111, allocations: 1.707 MB / 0.7044 GB, free: 23.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/1.111, allocations: 0 / 0.7044 GB, free: 23.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.299/1.41, allocations: 63.5 MB / 0.7665 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.41, allocations: 202 kB / 0.7666 GB, free: 132.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.333/4.744, allocations: 4 kB / 0.7667 GB, free: 132.6 MB / 462.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: