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.005587/0.005587, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001436/0.001436, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1723/0.1723, allocations: 9.095 MB / 299.6 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 64.11 kB / 414.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2728, allocations: 51.43 MB / 465.6 MB, free: 17.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01127/0.2841, allocations: 10.68 MB / 476.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007261/0.2914, allocations: 2.965 MB / 479.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.293, allocations: 42.28 kB / 479.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.2942, allocations: 447.9 kB / 479.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.2984, allocations: 1.666 MB / 481.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.299, allocations: 167.5 kB / 481.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003863/0.3028, allocations: 3.113 MB / 484.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.3042, allocations: 1.148 MB / 485.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.3056, allocations: 1.126 MB / 486.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3073, allocations: 1.619 MB / 488.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004232/0.3077, allocations: 291.5 kB / 488.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.3093, allocations: 0.8826 MB / 489.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001141/0.3104, allocations: 1.513 MB / 491.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.3121, allocations: 1.954 MB / 493.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007752/0.3198, allocations: 6.105 MB / 499.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3198, allocations: 4 kB / 499.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3198, allocations: 0 / 499.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001036/0.32, allocations: 0 / 499.3 MB, free: 10.32 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01021/0.3302, allocations: 4.682 MB / 0.4921 GB, free: 5.562 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3302, allocations: 8.031 kB / 0.4922 GB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000889/0.3311, allocations: 0.6755 MB / 0.4928 GB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007373/0.3385, allocations: 1.933 MB / 0.4947 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.3414, allocations: 1.597 MB / 0.4963 GB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.3416, allocations: 196.8 kB / 0.4964 GB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005613/0.3422, allocations: 251.8 kB / 0.4967 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/0.3578, allocations: 9.784 MB / 0.5062 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.464e-05/0.3579, allocations: 31.7 kB / 0.5063 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003433/0.3583, allocations: 127.8 kB / 0.5064 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003869/0.3622, allocations: 2.303 MB / 0.5086 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01802/0.3802, allocations: 8.474 MB / 0.5169 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05216/0.4324, allocations: 30.64 MB / 0.5468 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007961/0.4404, allocations: 2.795 MB / 0.5496 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/0.4427, allocations: 1.048 MB / 0.5506 GB, free: 8.371 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.4536, allocations: 5.844 MB / 0.5563 GB, free: 2.035 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.4537, allocations: 47.88 kB / 0.5564 GB, free: 1.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 4.088e-06/0.4537, allocations: 0 / 0.5564 GB, free: 1.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01935/0.4731, allocations: 8.338 MB / 0.5645 GB, free: 9.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.4732, allocations: 64.72 kB / 0.5646 GB, free: 9.496 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006277/0.4794, allocations: 3.211 MB / 0.5677 GB, free: 6.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.4796, allocations: 49.7 kB / 0.5677 GB, free: 6.215 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/0.4819, allocations: 2.706 MB / 0.5704 GB, free: 3.484 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007102/0.4826, allocations: 0.7054 MB / 0.5711 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/0.4842, allocations: 0.9887 MB / 0.572 GB, free: 1.773 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.4843, allocations: 305.1 kB / 0.5723 GB, free: 1.473 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/0.4873, allocations: 1.563 MB / 0.5739 GB, free: 15.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005448/0.4927, allocations: 4.361 MB / 0.5781 GB, free: 10.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008821/0.5016, allocations: 6.381 MB / 0.5843 GB, free: 2.402 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.455e-05/0.5017, allocations: 28 kB / 0.5844 GB, free: 2.375 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.2209/0.7227, allocations: 6.041 MB / 0.5903 GB, free: 106.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.302e-05/0.7228, allocations: 47 kB / 0.5903 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001526/0.7229, allocations: 99.69 kB / 0.5904 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009765/0.7239, allocations: 382.8 kB / 0.5908 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/0.7273, allocations: 1.093 MB / 0.5918 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004434/0.7318, allocations: 3.7 MB / 0.5955 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/0.7352, allocations: 248.8 kB / 0.5957 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004433/0.7356, allocations: 295.5 kB / 0.596 GB, free: 103.9 MB / 462.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.003537/0.7392, allocations: 1.888 MB / 0.5978 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004343/0.7396, allocations: 286.4 kB / 0.5981 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/0.7438, allocations: 2.416 MB / 0.6004 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001895/0.744, allocations: 54.05 kB / 0.6005 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.744, allocations: 2.688 kB / 0.6005 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/0.744, allocations: 8.016 kB / 0.6005 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.7555, allocations: 6.854 MB / 0.6072 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.7555, allocations: 4.344 kB / 0.6072 GB, free: 99.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7565, allocations: 257.1 kB / 0.6075 GB, free: 99.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000678/0.7572, allocations: 252.7 kB / 0.6077 GB, free: 99.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.747e-05/0.7573, allocations: 41.25 kB / 0.6077 GB, free: 99.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002933/0.7603, allocations: 2.948 MB / 0.6106 GB, free: 97.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.7603, allocations: 7.438 kB / 0.6106 GB, free: 97.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005386/0.7657, allocations: 3.754 MB / 0.6143 GB, free: 96.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008759/0.7666, allocations: 363.3 kB / 0.6146 GB, free: 95.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/0.7669, allocations: 31.19 kB / 0.6147 GB, free: 95.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009435/0.7679, allocations: 78.44 kB / 0.6147 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.768, allocations: 108.3 kB / 0.6148 GB, free: 95.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.7682, allocations: 56.31 kB / 0.6149 GB, free: 95.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.7708, allocations: 2.039 MB / 0.6169 GB, free: 95 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7708, allocations: 7.281 kB / 0.6169 GB, free: 95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003357/0.7742, allocations: 0.8393 MB / 0.6177 GB, free: 94.91 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,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.004764/0.779, allocations: 4.399 MB / 0.622 GB, free: 92.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00567/0.7847, allocations: 3.869 MB / 0.6258 GB, free: 91.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.7847, allocations: 4.125 kB / 0.6258 GB, free: 91.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.7862, allocations: 1.21 MB / 0.627 GB, free: 89.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.7883, allocations: 464.9 kB / 0.6274 GB, free: 89.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03583/0.8241, allocations: 34.48 MB / 0.6611 GB, free: 51.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002361/0.8265, allocations: 3.009 MB / 0.664 GB, free: 48.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002678/0.8292, allocations: 1.436 MB / 0.6654 GB, free: 46.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/0.8308, allocations: 1.686 MB / 0.6671 GB, free: 44.97 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.8308, allocations: 0 / 0.6671 GB, free: 44.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08487/0.9157, allocations: 54.28 MB / 0.7201 GB, free: 6.957 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20/20.92, allocations: 8.047 kB / 0.7201 GB, free: 6.949 MB / 478.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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)