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.007699/0.007699, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.00183/0.00183, allocations: 189 kB / 16.67 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0432/0.0432, allocations: 9.122 MB / 299.6 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 71.88 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09107, allocations: 51.44 MB / 465.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01055/0.1017, allocations: 10.69 MB / 476.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005732/0.1074, allocations: 2.953 MB / 479.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001336/0.1088, allocations: 43.94 kB / 479.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.1101, allocations: 456.9 kB / 479.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003901/0.1141, allocations: 1.645 MB / 481.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005881/0.1147, allocations: 195.7 kB / 481.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.1186, allocations: 3.113 MB / 484.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001938/0.1206, allocations: 1.145 MB / 485.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.1223, allocations: 1.121 MB / 486.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002375/0.1247, allocations: 1.627 MB / 488.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007176/0.1254, allocations: 292 kB / 488.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.1273, allocations: 0.8816 MB / 489.7 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.1289, allocations: 1.508 MB / 491.2 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002487/0.1314, allocations: 1.953 MB / 493.2 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006292/0.1377, allocations: 6.077 MB / 499.2 MB, free: 360 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1377, allocations: 0 / 499.2 MB, free: 360 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1378, allocations: 0 / 499.2 MB, free: 360 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001912/0.1379, allocations: 4 kB / 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.01065/0.1486, allocations: 4.572 MB / 0.492 GB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.1487, allocations: 12.03 kB / 0.492 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00126/0.1499, allocations: 0.6754 MB / 0.4927 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007188/0.1571, allocations: 1.914 MB / 0.4946 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.1599, allocations: 1.589 MB / 0.4961 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.1601, allocations: 200.8 kB / 0.4963 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006515/0.1607, allocations: 255.7 kB / 0.4965 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2003/0.3611, allocations: 9.77 MB / 0.5061 GB, free: 38.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.3612, allocations: 34.34 kB / 0.5061 GB, free: 38.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.3616, allocations: 117.8 kB / 0.5062 GB, free: 38.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003821/0.3654, allocations: 2.308 MB / 0.5085 GB, free: 38.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01662/0.3821, allocations: 8.47 MB / 0.5168 GB, free: 35.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03309/0.4152, allocations: 30.57 MB / 0.5466 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005514/0.4207, allocations: 2.798 MB / 0.5493 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.4222, allocations: 1.055 MB / 0.5504 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006977/0.4291, allocations: 5.84 MB / 0.5561 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.4292, allocations: 47.88 kB / 0.5561 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.075e-06/0.4292, allocations: 0 / 0.5561 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01571/0.4449, allocations: 8.259 MB / 0.5642 GB, free: 8.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.445, allocations: 68.72 kB / 0.5643 GB, free: 8.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.4489, allocations: 3.198 MB / 0.5674 GB, free: 5.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.4491, allocations: 53.7 kB / 0.5674 GB, free: 5.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.4506, allocations: 2.597 MB / 0.57 GB, free: 2.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005296/0.4511, allocations: 0.6747 MB / 0.5706 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.4523, allocations: 0.9841 MB / 0.5716 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.4524, allocations: 312.3 kB / 0.5719 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/0.4547, allocations: 1.563 MB / 0.5734 GB, free: 15.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004042/0.4588, allocations: 4.365 MB / 0.5777 GB, free: 9.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007146/0.4659, allocations: 6.375 MB / 0.5839 GB, free: 1.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-05/0.466, allocations: 28 kB / 0.5839 GB, free: 1.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01078/0.4768, allocations: 6.029 MB / 0.5898 GB, free: 11.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/0.4769, allocations: 48 kB / 0.5899 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001339/0.4771, allocations: 96 kB / 0.5899 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008675/0.4779, allocations: 373.3 kB / 0.5903 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00347/0.4814, allocations: 1.092 MB / 0.5914 GB, free: 9.883 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004855/0.4863, allocations: 3.71 MB / 0.595 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003764/0.4901, allocations: 244 kB / 0.5952 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008647/0.491, allocations: 296 kB / 0.5955 GB, free: 5.504 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.003687/0.4947, allocations: 1.885 MB / 0.5973 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006417/0.4953, allocations: 276.4 kB / 0.5976 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004571/0.4999, allocations: 2.418 MB / 0.6 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000182/0.5001, allocations: 47.95 kB / 0.6 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/0.5002, allocations: 4.062 kB / 0.6 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.5002, allocations: 7.969 kB / 0.6 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.5127, allocations: 6.862 MB / 0.6067 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.5127, allocations: 7.938 kB / 0.6067 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5138, allocations: 255.7 kB / 0.607 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006526/0.5145, allocations: 244.5 kB / 0.6072 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.5146, allocations: 35.98 kB / 0.6073 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003157/0.5177, allocations: 2.949 MB / 0.6101 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5178, allocations: 4 kB / 0.6101 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005389/0.5232, allocations: 3.735 MB / 0.6138 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007332/0.5239, allocations: 345.6 kB / 0.6141 GB, free: 2.062 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005297/0.5245, allocations: 35.98 kB / 0.6141 GB, free: 2.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.5256, allocations: 75.91 kB / 0.6142 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.5258, allocations: 113 kB / 0.6143 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.5259, allocations: 48 kB / 0.6144 GB, free: 1.797 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003335/0.5293, allocations: 2.04 MB / 0.6164 GB, free: 15.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5293, allocations: 3.938 kB / 0.6164 GB, free: 15.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004145/0.5334, allocations: 0.8501 MB / 0.6172 GB, free: 14.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.006073/0.5395, allocations: 4.388 MB / 0.6215 GB, free: 10.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006945/0.5465, allocations: 3.849 MB / 0.6252 GB, free: 6.602 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/0.5465, allocations: 8.625 kB / 0.6253 GB, free: 6.594 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002099/0.5486, allocations: 1.205 MB / 0.6264 GB, free: 5.375 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/0.5518, allocations: 468.8 kB / 0.6269 GB, free: 4.926 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05189/0.6037, allocations: 34.35 MB / 0.6604 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00468/0.6084, allocations: 3.003 MB / 0.6634 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00434/0.6128, allocations: 1.432 MB / 0.6647 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002529/0.6153, allocations: 1.69 MB / 0.6664 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/0.6153, allocations: 0 / 0.6664 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3193/0.9346, allocations: 55.1 MB / 0.7202 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.64/20.58, allocations: 11.16 kB / 0.7202 GB, free: 185.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)