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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.000788/0.000788, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.0008121/0.0008121, allocations: 168.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 223.2 MB / 240 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1733/0.1733, allocations: 9.116 MB / 300.2 MB, free: 2.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002978, allocations: 8 kB / 363.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09793, allocations: 52.43 MB / 415.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.224/0.3219, allocations: 40.03 MB / 455.7 MB, free: 19.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.3412, allocations: 8.875 MB / 464.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007523/0.3487, allocations: 168.2 kB / 464.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005346/0.3541, allocations: 1.981 MB / 466.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01749/0.3716, allocations: 6.862 MB / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.3738, allocations: 201.6 kB / 473.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003463/0.3773, allocations: 3.288 MB / 477 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.3787, allocations: 1.043 MB / 478.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.3803, allocations: 0.9619 MB / 479 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002257/0.3826, allocations: 1.516 MB / 480.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004246/0.383, allocations: 157.9 kB / 480.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.3846, allocations: 0.6934 MB / 481.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001435/0.386, allocations: 1.261 MB / 482.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008696/0.3869, allocations: 0.7462 MB / 483.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005943/0.3928, allocations: 4.18 MB / 487.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3929, allocations: 0.6562 kB / 487.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3929, allocations: 0 / 487.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002144/0.3931, allocations: 0 / 487.6 MB, free: 4.762 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.01273/0.4058, allocations: 5.009 MB / 492.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.4059, allocations: 9.5 kB / 492.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001421/0.4073, allocations: 0.6302 MB / 493.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006481/0.4138, allocations: 1.879 MB / 495.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003358/0.4172, allocations: 1.542 MB / 496.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.4174, allocations: 190.2 kB / 496.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005701/0.418, allocations: 249.5 kB / 497.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.4337, allocations: 9.286 MB / 0.4945 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.087e-05/0.4338, allocations: 30.05 kB / 0.4945 GB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003374/0.4342, allocations: 119.8 kB / 0.4946 GB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003061/0.4372, allocations: 2.072 MB / 0.4967 GB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01604/0.4533, allocations: 8.202 MB / 0.5047 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04266/0.496, allocations: 30.03 MB / 0.534 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007418/0.5034, allocations: 3.02 MB / 0.537 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.5052, allocations: 1.112 MB / 0.538 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007636/0.5129, allocations: 6.281 MB / 0.5442 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.513, allocations: 47.88 kB / 0.5442 GB, free: 4.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.767e-06/0.513, allocations: 0 / 0.5442 GB, free: 4.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.0292/0.5422, allocations: 12.32 MB / 0.5563 GB, free: 7.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01004/0.5522, allocations: 8.762 MB / 0.5648 GB, free: 14.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00523/0.5575, allocations: 3.069 MB / 0.5678 GB, free: 11.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/0.5578, allocations: 61.69 kB / 0.5679 GB, free: 11.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001635/0.5595, allocations: 2.424 MB / 0.5702 GB, free: 8.988 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009449/0.5604, allocations: 0.8671 MB / 0.5711 GB, free: 8.109 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004152/0.5608, allocations: 100 kB / 0.5712 GB, free: 8.012 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000392/0.5613, allocations: 0.517 MB / 0.5717 GB, free: 7.488 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003066/0.5643, allocations: 1.673 MB / 0.5733 GB, free: 5.809 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/0.5694, allocations: 4.296 MB / 0.5775 GB, free: 232 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2031/0.7725, allocations: 2.675 MB / 0.5801 GB, free: 120.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.832e-05/0.7726, allocations: 26.64 kB / 0.5801 GB, free: 120.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01244/0.7851, allocations: 6.591 MB / 0.5866 GB, free: 120.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.542e-05/0.7852, allocations: 44.75 kB / 0.5866 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/0.7853, allocations: 88.25 kB / 0.5867 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001731/0.7871, allocations: 0.741 MB / 0.5874 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003396/0.7905, allocations: 1.068 MB / 0.5885 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/0.8011, allocations: 12.42 MB / 0.6006 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003561/0.8047, allocations: 289.5 kB / 0.6009 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007106/0.8054, allocations: 293.6 kB / 0.6012 GB, free: 111.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.00393/0.8094, allocations: 1.792 MB / 0.6029 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009463/0.8103, allocations: 283.5 kB / 0.6032 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006581/0.8169, allocations: 3.427 MB / 0.6065 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004229/0.8212, allocations: 2.951 MB / 0.6094 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.586e-05/0.8212, allocations: 6.188 kB / 0.6094 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.223e-05/0.8213, allocations: 10.36 kB / 0.6094 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01898/0.8402, allocations: 10.6 MB / 0.6198 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.8403, allocations: 2.75 kB / 0.6198 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.8413, allocations: 276 kB / 0.62 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002257/0.8436, allocations: 0.794 MB / 0.6208 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/0.8438, allocations: 50.05 kB / 0.6209 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.8564, allocations: 12.31 MB / 0.6329 GB, free: 95.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005764/0.8622, allocations: 5.752 MB / 0.6385 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007442/0.8696, allocations: 4.983 MB / 0.6434 GB, free: 89.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.8707, allocations: 377.9 kB / 0.6437 GB, free: 88.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007037/0.8714, allocations: 48.05 kB / 0.6438 GB, free: 88.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.8729, allocations: 102.1 kB / 0.6439 GB, free: 88.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003838/0.8733, allocations: 166.5 kB / 0.644 GB, free: 88.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/0.8735, allocations: 65.69 kB / 0.6441 GB, free: 88.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003646/0.8771, allocations: 1.95 MB / 0.646 GB, free: 87.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8771, allocations: 0 / 0.646 GB, free: 87.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005264/0.8824, allocations: 0.993 MB / 0.647 GB, free: 86.22 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.006848/0.8893, allocations: 5.667 MB / 0.6525 GB, free: 81.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006426/0.8957, allocations: 4.81 MB / 0.6572 GB, free: 76.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.8957, allocations: 0 / 0.6572 GB, free: 76.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.8983, allocations: 2.172 MB / 0.6593 GB, free: 74.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/0.9015, allocations: 449.7 kB / 0.6598 GB, free: 74.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04627/0.9478, allocations: 27.15 MB / 0.6863 GB, free: 45.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003807/0.9517, allocations: 2.966 MB / 0.6892 GB, free: 42.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003477/0.9552, allocations: 1.405 MB / 0.6905 GB, free: 41.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002505/0.9577, allocations: 1.643 MB / 0.6921 GB, free: 39.37 MB / 446.1 MB Notification: Performance of SimCode: time 1.332e-06/0.9577, allocations: 4 kB / 0.6921 GB, free: 39.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2905/1.248, allocations: 70.86 MB / 0.7613 GB, free: 123.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.248, allocations: 232.8 kB / 0.7616 GB, free: 123.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.208/4.456, allocations: 0 / 0.7616 GB, free: 123.5 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/linux/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) Environment - environmentSimulation: