Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.001126/0.001126, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001149/0.001149, allocations: 187 kB / 16.25 MB, free: 6.637 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.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.1 MB / 299.2 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09564, allocations: 51.43 MB / 413 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.1987/0.2944, allocations: 44.18 MB / 457.1 MB, free: 16.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.3108, allocations: 9.215 MB / 466.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008717/0.3196, allocations: 167.8 kB / 466.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.3208, allocations: 371 kB / 466.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00372/0.3245, allocations: 1.459 MB / 468.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.3251, allocations: 189.7 kB / 468.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003047/0.3282, allocations: 3.025 MB / 471.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.3294, allocations: 1.21 MB / 472.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.3304, allocations: 1.106 MB / 473.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.3318, allocations: 1.654 MB / 475.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003517/0.3322, allocations: 277.6 kB / 475.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.3336, allocations: 0.8851 MB / 476.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.3347, allocations: 1.414 MB / 478.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001638/0.3364, allocations: 1.878 MB / 480 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005735/0.3421, allocations: 5.459 MB / 485.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3422, allocations: 0 / 485.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3422, allocations: 0 / 485.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001678/0.3424, allocations: 0 / 485.4 MB, free: 2.27 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01556/0.3579, allocations: 5.743 MB / 491.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.358, allocations: 9.719 kB / 491.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001409/0.3594, allocations: 0.6355 MB / 491.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007205/0.3666, allocations: 1.834 MB / 493.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003916/0.3706, allocations: 1.568 MB / 495.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.3708, allocations: 188.8 kB / 495.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008268/0.3717, allocations: 239.1 kB / 495.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.3876, allocations: 9.313 MB / 0.4931 GB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.929e-05/0.3877, allocations: 27.72 kB / 0.4931 GB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/0.3881, allocations: 115.8 kB / 0.4932 GB, free: 8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003129/0.3912, allocations: 2.083 MB / 0.4953 GB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.4078, allocations: 8.243 MB / 0.5033 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04253/0.4503, allocations: 30.02 MB / 0.5326 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008178/0.4586, allocations: 3.037 MB / 0.5356 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/0.4604, allocations: 1.112 MB / 0.5367 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008507/0.469, allocations: 6.299 MB / 0.5428 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.4691, allocations: 43.88 kB / 0.5429 GB, free: 3.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 6.021e-06/0.4691, allocations: 0 / 0.5429 GB, free: 3.754 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.03018/0.4993, allocations: 12.32 MB / 0.5549 GB, free: 7.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01055/0.5098, allocations: 9.303 MB / 0.564 GB, free: 13.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004289/0.5142, allocations: 3.077 MB / 0.567 GB, free: 10.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003198/0.5145, allocations: 57.7 kB / 0.5671 GB, free: 10.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.516, allocations: 2.428 MB / 0.5694 GB, free: 7.875 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008996/0.5169, allocations: 0.8671 MB / 0.5703 GB, free: 6.996 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.5182, allocations: 0.9966 MB / 0.5713 GB, free: 5.988 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.376e-05/0.5183, allocations: 305.1 kB / 0.5715 GB, free: 5.688 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002591/0.5209, allocations: 1.689 MB / 0.5732 GB, free: 3.992 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1733/0.6942, allocations: 4.313 MB / 0.5774 GB, free: 123.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006429/0.7007, allocations: 6.494 MB / 0.5837 GB, free: 120.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.57e-05/0.7008, allocations: 25.66 kB / 0.5838 GB, free: 120.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01035/0.7111, allocations: 6.637 MB / 0.5903 GB, free: 118.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.674e-05/0.7112, allocations: 44.75 kB / 0.5903 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-05/0.7113, allocations: 90.59 kB / 0.5904 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/0.713, allocations: 0.7334 MB / 0.5911 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.716, allocations: 1.067 MB / 0.5921 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0109/0.7269, allocations: 13.61 MB / 0.6054 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003822/0.7308, allocations: 294.7 kB / 0.6057 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006342/0.7314, allocations: 295.4 kB / 0.606 GB, free: 108 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (1,1,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003077/0.7345, allocations: 1.793 MB / 0.6077 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004829/0.735, allocations: 285 kB / 0.608 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00503/0.74, allocations: 3.434 MB / 0.6114 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004443/0.7445, allocations: 2.976 MB / 0.6143 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.7445, allocations: 13.19 kB / 0.6143 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.7446, allocations: 9.984 kB / 0.6143 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.7603, allocations: 10.6 MB / 0.6247 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.7603, allocations: 2.594 kB / 0.6247 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009941/0.7613, allocations: 273.8 kB / 0.6249 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.7633, allocations: 0.7951 MB / 0.6257 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.7635, allocations: 48.2 kB / 0.6257 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.775, allocations: 13.48 MB / 0.6389 GB, free: 90.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005135/0.7802, allocations: 5.994 MB / 0.6448 GB, free: 86.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00607/0.7862, allocations: 5.021 MB / 0.6497 GB, free: 83.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006776/0.7869, allocations: 361.1 kB / 0.65 GB, free: 82.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/0.7873, allocations: 40 kB / 0.65 GB, free: 82.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.7884, allocations: 111.4 kB / 0.6502 GB, free: 82.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003431/0.7887, allocations: 163.4 kB / 0.6503 GB, free: 82.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.7889, allocations: 73.36 kB / 0.6504 GB, free: 82.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002333/0.7912, allocations: 1.974 MB / 0.6523 GB, free: 80.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7912, allocations: 0 / 0.6523 GB, free: 80.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004409/0.7956, allocations: 0.9845 MB / 0.6533 GB, free: 79.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (159): * Single equations (assignments): 150 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006466/0.8021, allocations: 5.69 MB / 0.6588 GB, free: 74.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01058/0.8127, allocations: 7.187 MB / 0.6658 GB, free: 68.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.8127, allocations: 0 / 0.6658 GB, free: 68.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.8153, allocations: 2.174 MB / 0.668 GB, free: 65.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/0.8177, allocations: 479.9 kB / 0.6684 GB, free: 65.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04985/0.8675, allocations: 42.11 MB / 0.7095 GB, free: 17.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.87, allocations: 2.961 MB / 0.7124 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002854/0.8729, allocations: 1.386 MB / 0.7138 GB, free: 13.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/0.8744, allocations: 1.628 MB / 0.7154 GB, free: 11.69 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8744, allocations: 0 / 0.7154 GB, free: 11.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.263/1.137, allocations: 67.97 MB / 0.7818 GB, free: 126.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/1.138, allocations: 248.1 kB / 0.782 GB, free: 126.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.721/4.858, allocations: 4 kB / 0.782 GB, free: 126.2 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)