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.001398/0.001398, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001916/0.001916, allocations: 197 kB / 16.26 MB, free: 6.621 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.402/1.402, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1574/0.1574, allocations: 9.095 MB / 299.2 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.91 kB / 361.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1023, allocations: 51.42 MB / 413 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2203/0.3227, allocations: 44.39 MB / 457.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01905/0.3418, allocations: 9.248 MB / 466.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009359/0.3512, allocations: 165.9 kB / 466.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.353, allocations: 368.1 kB / 467.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004534/0.3576, allocations: 1.535 MB / 468.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007105/0.3583, allocations: 153.9 kB / 468.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004153/0.3625, allocations: 3.128 MB / 471.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.3641, allocations: 1.169 MB / 473.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001686/0.3658, allocations: 1.128 MB / 474.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.3682, allocations: 1.756 MB / 476 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008001/0.369, allocations: 290.1 kB / 476.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.3709, allocations: 0.8872 MB / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001612/0.3725, allocations: 1.522 MB / 478.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002298/0.3748, allocations: 1.97 MB / 480.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006685/0.3815, allocations: 5.803 MB / 486.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3816, allocations: 5.922 kB / 486.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3816, allocations: 0 / 486.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.3818, allocations: 1.031 kB / 486.5 MB, free: 1.734 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.01425/0.3961, allocations: 4.573 MB / 491 MB, free: 15.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3962, allocations: 9.406 kB / 491 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001719/0.3979, allocations: 0.6728 MB / 491.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008235/0.4061, allocations: 1.915 MB / 493.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00429/0.4105, allocations: 1.584 MB / 495.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.4107, allocations: 195.1 kB / 495.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.4122, allocations: 255.3 kB / 495.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.4294, allocations: 9.785 MB / 0.4936 GB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-05/0.4296, allocations: 35.7 kB / 0.4936 GB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000384/0.43, allocations: 119.8 kB / 0.4937 GB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003529/0.4335, allocations: 2.295 MB / 0.496 GB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.4507, allocations: 8.486 MB / 0.5043 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04766/0.4984, allocations: 30.7 MB / 0.5342 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006814/0.5053, allocations: 2.795 MB / 0.537 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/0.5072, allocations: 1.047 MB / 0.538 GB, free: 9.355 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009338/0.5166, allocations: 5.847 MB / 0.5437 GB, free: 3.016 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.5166, allocations: 47.88 kB / 0.5437 GB, free: 2.961 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 5.42e-06/0.5167, allocations: 0 / 0.5437 GB, free: 2.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01933/0.536, allocations: 8.275 MB / 0.5518 GB, free: 10.61 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.5361, allocations: 68.72 kB / 0.5519 GB, free: 10.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004994/0.5411, allocations: 3.194 MB / 0.555 GB, free: 7.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000341/0.5415, allocations: 49.7 kB / 0.5551 GB, free: 7.266 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.5432, allocations: 2.597 MB / 0.5576 GB, free: 4.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/0.5442, allocations: 0.6785 MB / 0.5583 GB, free: 3.945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/0.5455, allocations: 0.9802 MB / 0.5592 GB, free: 2.953 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.5456, allocations: 309.1 kB / 0.5595 GB, free: 2.648 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.5482, allocations: 1.567 MB / 0.561 GB, free: 1.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004259/0.5525, allocations: 4.353 MB / 0.5653 GB, free: 11.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007521/0.56, allocations: 6.392 MB / 0.5715 GB, free: 3.578 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-05/0.5601, allocations: 28 kB / 0.5716 GB, free: 3.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.1945/0.7546, allocations: 6.019 MB / 0.5774 GB, free: 123 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.841e-05/0.7547, allocations: 52.75 kB / 0.5775 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001479/0.7549, allocations: 96.19 kB / 0.5776 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008755/0.7558, allocations: 370.9 kB / 0.5779 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003352/0.7591, allocations: 1.098 MB / 0.579 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/0.763, allocations: 3.703 MB / 0.5826 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/0.7671, allocations: 246.7 kB / 0.5829 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009035/0.768, allocations: 292.9 kB / 0.5831 GB, free: 121.5 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 (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.003668/0.7717, allocations: 1.891 MB / 0.585 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005491/0.7722, allocations: 275.7 kB / 0.5852 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.7761, allocations: 2.423 MB / 0.5876 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001807/0.7763, allocations: 45.14 kB / 0.5877 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.7763, allocations: 5.406 kB / 0.5877 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.7763, allocations: 10.45 kB / 0.5877 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.7875, allocations: 6.89 MB / 0.5944 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.7876, allocations: 2.812 kB / 0.5944 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.7886, allocations: 258.2 kB / 0.5946 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006789/0.7893, allocations: 253.5 kB / 0.5949 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.7894, allocations: 39.73 kB / 0.5949 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003165/0.7926, allocations: 2.948 MB / 0.5978 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.7926, allocations: 12.33 kB / 0.5978 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005357/0.798, allocations: 3.732 MB / 0.6015 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.7991, allocations: 346.5 kB / 0.6018 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003612/0.7994, allocations: 36.08 kB / 0.6018 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.8005, allocations: 73.95 kB / 0.6019 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002386/0.8007, allocations: 115.2 kB / 0.602 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.8008, allocations: 50.39 kB / 0.6021 GB, free: 114.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003156/0.804, allocations: 2.039 MB / 0.604 GB, free: 113.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.804, allocations: 0 / 0.604 GB, free: 113.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004698/0.8087, allocations: 0.8449 MB / 0.6049 GB, free: 113.5 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 (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.00615/0.8149, allocations: 4.386 MB / 0.6092 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01019/0.8251, allocations: 5.49 MB / 0.6145 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/0.8252, allocations: 4.328 kB / 0.6145 GB, free: 110.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.827, allocations: 1.209 MB / 0.6157 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/0.8296, allocations: 470.7 kB / 0.6162 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05456/0.8842, allocations: 39.88 MB / 0.6551 GB, free: 72.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003768/0.888, allocations: 3.007 MB / 0.658 GB, free: 70.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003786/0.8918, allocations: 1.433 MB / 0.6594 GB, free: 69.31 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/0.8942, allocations: 1.687 MB / 0.6611 GB, free: 67.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8943, allocations: 0 / 0.6611 GB, free: 67.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08013/0.9744, allocations: 57.41 MB / 0.7171 GB, free: 10.68 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/0.9746, allocations: 231.7 kB / 0.7174 GB, free: 10.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.462/4.436, allocations: 0 / 0.7174 GB, free: 10.41 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/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)