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.007888/0.007888, allocations: 100.9 kB / 15.73 MB, free: 6.051 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.00201/0.002011, allocations: 199.9 kB / 16.68 MB, free: 5.973 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0469/0.0469, allocations: 9.122 MB / 299.7 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 59.89 kB / 414.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.09244, allocations: 51.45 MB / 465.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.0123/0.1048, allocations: 10.68 MB / 476.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006044/0.1109, allocations: 2.953 MB / 479.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.112, allocations: 43.88 kB / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009621/0.113, allocations: 452.9 kB / 479.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003671/0.1167, allocations: 1.657 MB / 481.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.1172, allocations: 179.7 kB / 481.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003886/0.121, allocations: 3.112 MB / 484.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.1227, allocations: 1.141 MB / 485.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.1243, allocations: 1.124 MB / 486.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.1267, allocations: 1.619 MB / 488.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006061/0.1273, allocations: 299.9 kB / 488.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.1291, allocations: 0.8739 MB / 489.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001541/0.1307, allocations: 1.508 MB / 491.2 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002144/0.1328, allocations: 1.953 MB / 493.2 MB, free: 6.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007353/0.1402, allocations: 6.108 MB / 499.3 MB, free: 360 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1402, allocations: 0 / 499.3 MB, free: 360 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1402, allocations: 4 kB / 499.3 MB, free: 356 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.1404, allocations: 0 / 499.3 MB, free: 356 kB / 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.01074/0.1512, allocations: 4.682 MB / 0.4921 GB, free: 11.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1512, allocations: 8.031 kB / 0.4921 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009355/0.1522, allocations: 0.6794 MB / 0.4928 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007637/0.1598, allocations: 1.936 MB / 0.4947 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.163, allocations: 1.597 MB / 0.4963 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.1632, allocations: 196.8 kB / 0.4965 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006138/0.1638, allocations: 259.7 kB / 0.4967 GB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1842/0.348, allocations: 9.772 MB / 0.5062 GB, free: 38.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.999e-05/0.3482, allocations: 35.8 kB / 0.5063 GB, free: 38.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/0.3485, allocations: 117 kB / 0.5064 GB, free: 38.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003546/0.352, allocations: 2.309 MB / 0.5086 GB, free: 38.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01687/0.3689, allocations: 8.469 MB / 0.5169 GB, free: 35.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03536/0.4043, allocations: 30.65 MB / 0.5468 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005442/0.4098, allocations: 2.798 MB / 0.5496 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/0.4112, allocations: 1.051 MB / 0.5506 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006458/0.4177, allocations: 5.842 MB / 0.5563 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4178, allocations: 51.88 kB / 0.5564 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.887e-06/0.4178, allocations: 0 / 0.5564 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01749/0.4353, allocations: 8.335 MB / 0.5645 GB, free: 8.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4353, allocations: 68.72 kB / 0.5646 GB, free: 8.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004401/0.4398, allocations: 3.209 MB / 0.5677 GB, free: 5.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.4399, allocations: 51.81 kB / 0.5677 GB, free: 5.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/0.4419, allocations: 2.708 MB / 0.5704 GB, free: 2.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00071/0.4426, allocations: 0.7015 MB / 0.5711 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00136/0.444, allocations: 0.9926 MB / 0.572 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4441, allocations: 309.1 kB / 0.5723 GB, free: 468 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002786/0.4469, allocations: 1.563 MB / 0.5739 GB, free: 14.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005294/0.4522, allocations: 4.357 MB / 0.5781 GB, free: 9.141 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008551/0.4608, allocations: 6.383 MB / 0.5844 GB, free: 1.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.452e-05/0.4609, allocations: 28 kB / 0.5844 GB, free: 1.363 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01113/0.4721, allocations: 6.046 MB / 0.5903 GB, free: 11.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.637e-05/0.4722, allocations: 48 kB / 0.5903 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.4723, allocations: 96 kB / 0.5904 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008768/0.4732, allocations: 377.3 kB / 0.5908 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003383/0.4766, allocations: 1.092 MB / 0.5918 GB, free: 9.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004898/0.4815, allocations: 3.708 MB / 0.5955 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003552/0.485, allocations: 248 kB / 0.5957 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006508/0.4857, allocations: 296 kB / 0.596 GB, free: 5.328 MB / 430.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.003158/0.4889, allocations: 1.882 MB / 0.5978 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005565/0.4894, allocations: 289.8 kB / 0.5981 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004404/0.4939, allocations: 2.429 MB / 0.6005 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001838/0.4941, allocations: 43.95 kB / 0.6005 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4941, allocations: 4 kB / 0.6005 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.4941, allocations: 7.969 kB / 0.6005 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.5062, allocations: 6.852 MB / 0.6072 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.5063, allocations: 7.938 kB / 0.6072 GB, free: 9.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.5073, allocations: 259.6 kB / 0.6075 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006893/0.508, allocations: 248.1 kB / 0.6077 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.5081, allocations: 35.98 kB / 0.6077 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.5117, allocations: 2.949 MB / 0.6106 GB, free: 6.043 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5117, allocations: 4 kB / 0.6106 GB, free: 6.039 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005965/0.5177, allocations: 3.748 MB / 0.6143 GB, free: 2.219 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008177/0.5185, allocations: 359.2 kB / 0.6146 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/0.5189, allocations: 35.98 kB / 0.6147 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/0.5198, allocations: 75.89 kB / 0.6147 GB, free: 1.738 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.5201, allocations: 118.1 kB / 0.6149 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.5202, allocations: 55.98 kB / 0.6149 GB, free: 1.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00316/0.5233, allocations: 2.033 MB / 0.6169 GB, free: 15.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5234, allocations: 0 / 0.6169 GB, free: 15.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003649/0.527, allocations: 0.8475 MB / 0.6177 GB, free: 14.69 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.006624/0.5337, allocations: 4.403 MB / 0.622 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00706/0.5407, allocations: 3.864 MB / 0.6258 GB, free: 6.348 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.5408, allocations: 0.6875 kB / 0.6258 GB, free: 6.348 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.5429, allocations: 1.213 MB / 0.627 GB, free: 5.121 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.5452, allocations: 465.6 kB / 0.6274 GB, free: 4.676 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05586/0.601, allocations: 34.49 MB / 0.6611 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003743/0.6048, allocations: 3.007 MB / 0.664 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003523/0.6084, allocations: 1.432 MB / 0.6654 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002547/0.611, allocations: 1.686 MB / 0.6671 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of SimCode: time 9.21e-07/0.611, allocations: 0 / 0.6671 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3174/0.9284, allocations: 54.28 MB / 0.7201 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.65/21.58, allocations: 4.891 kB / 0.7201 GB, free: 184.3 MB / 0.5294 GB (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)