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.001866/0.001866, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002083/0.002083, allocations: 190.4 kB / 16.66 MB, free: 6.59 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1449/0.1449, allocations: 9.103 MB / 299.6 MB, free: 1.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 68.09 kB / 414.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2354, allocations: 51.44 MB / 465.6 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.009192/0.2447, allocations: 10.47 MB / 476 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005716/0.2504, allocations: 2.972 MB / 479 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.2518, allocations: 47.44 kB / 479.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009694/0.2528, allocations: 450.4 kB / 479.5 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004017/0.2569, allocations: 1.588 MB / 481.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007255/0.2576, allocations: 218.6 kB / 481.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.2612, allocations: 3.019 MB / 484.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.2627, allocations: 1.184 MB / 485.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00159/0.2643, allocations: 1.097 MB / 486.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.2661, allocations: 1.548 MB / 488.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000483/0.2666, allocations: 276.1 kB / 488.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.2682, allocations: 0.8773 MB / 489.3 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.2693, allocations: 1.389 MB / 490.7 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.2708, allocations: 1.867 MB / 492.6 MB, free: 0 / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007514/0.2784, allocations: 5.742 MB / 498.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2784, allocations: 0 / 498.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2784, allocations: 0 / 498.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001216/0.2786, allocations: 0 / 498.3 MB, free: 11.39 MB / 366.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.01376/0.2923, allocations: 5.835 MB / 0.4923 GB, free: 5.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2924, allocations: 12.03 kB / 0.4923 GB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009358/0.2933, allocations: 0.6301 MB / 0.4929 GB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006998/0.3003, allocations: 1.855 MB / 0.4948 GB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00285/0.3032, allocations: 1.588 MB / 0.4963 GB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.3034, allocations: 184.6 kB / 0.4965 GB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004991/0.3039, allocations: 251.7 kB / 0.4967 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/0.3201, allocations: 9.311 MB / 0.5058 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/0.3203, allocations: 31.75 kB / 0.5058 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.3206, allocations: 115.8 kB / 0.506 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003481/0.3241, allocations: 2.083 MB / 0.508 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01735/0.3415, allocations: 8.233 MB / 0.516 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0441/0.3856, allocations: 29.99 MB / 0.5453 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00813/0.3938, allocations: 3.038 MB / 0.5483 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/0.3959, allocations: 1.112 MB / 0.5494 GB, free: 9.742 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008941/0.4049, allocations: 6.293 MB / 0.5555 GB, free: 2.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.4049, allocations: 47.81 kB / 0.5556 GB, free: 2.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.528e-06/0.405, allocations: 4 kB / 0.5556 GB, free: 2.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03253/0.4375, allocations: 12.37 MB / 0.5676 GB, free: 6.195 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01191/0.4495, allocations: 9.299 MB / 0.5767 GB, free: 12.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005553/0.455, allocations: 3.089 MB / 0.5797 GB, free: 9.316 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003012/0.4554, allocations: 57.7 kB / 0.5798 GB, free: 9.254 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/0.4575, allocations: 2.529 MB / 0.5823 GB, free: 6.703 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/0.4586, allocations: 0.899 MB / 0.5831 GB, free: 5.797 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001816/0.4604, allocations: 1.005 MB / 0.5841 GB, free: 4.781 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4605, allocations: 305.2 kB / 0.5844 GB, free: 4.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003005/0.4635, allocations: 1.689 MB / 0.5861 GB, free: 2.785 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2195/0.683, allocations: 4.314 MB / 0.5903 GB, free: 106.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007072/0.6902, allocations: 6.499 MB / 0.5966 GB, free: 102.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.081e-05/0.6903, allocations: 26.31 kB / 0.5967 GB, free: 102.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01095/0.7012, allocations: 6.653 MB / 0.6031 GB, free: 99.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.145e-05/0.7013, allocations: 46.75 kB / 0.6032 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.7014, allocations: 90.06 kB / 0.6033 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/0.7033, allocations: 0.7322 MB / 0.604 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.7063, allocations: 1.069 MB / 0.605 GB, free: 99.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.7181, allocations: 13.6 MB / 0.6183 GB, free: 89.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003463/0.7216, allocations: 293.5 kB / 0.6186 GB, free: 89.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004892/0.7221, allocations: 299.6 kB / 0.6189 GB, free: 89.5 MB / 462.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.002541/0.7247, allocations: 1.794 MB / 0.6206 GB, free: 88.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/0.7251, allocations: 302.6 kB / 0.6209 GB, free: 88.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005251/0.7304, allocations: 3.439 MB / 0.6243 GB, free: 87.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003944/0.7343, allocations: 2.964 MB / 0.6272 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.7343, allocations: 8.469 kB / 0.6272 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.7344, allocations: 15.3 kB / 0.6272 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.7478, allocations: 10.49 MB / 0.6374 GB, free: 81 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.7479, allocations: 4 kB / 0.6374 GB, free: 80.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009182/0.7488, allocations: 276.2 kB / 0.6377 GB, free: 80.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/0.7505, allocations: 0.7765 MB / 0.6385 GB, free: 79.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.7507, allocations: 43.98 kB / 0.6385 GB, free: 79.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.7608, allocations: 13.49 MB / 0.6517 GB, free: 65.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004768/0.7656, allocations: 5.996 MB / 0.6575 GB, free: 59.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005891/0.7715, allocations: 5.044 MB / 0.6625 GB, free: 54.45 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006302/0.7722, allocations: 381.3 kB / 0.6628 GB, free: 54.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003232/0.7725, allocations: 36 kB / 0.6629 GB, free: 54.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.7735, allocations: 107.9 kB / 0.663 GB, free: 53.92 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/0.7738, allocations: 161.7 kB / 0.6631 GB, free: 53.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.774, allocations: 67.97 kB / 0.6632 GB, free: 53.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002184/0.7762, allocations: 1.972 MB / 0.6651 GB, free: 51.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7762, allocations: 0 / 0.6651 GB, free: 51.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003665/0.7798, allocations: 0.9882 MB / 0.6661 GB, free: 50.73 MB / 462.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.005892/0.7857, allocations: 5.702 MB / 0.6716 GB, free: 44.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005798/0.7916, allocations: 4.869 MB / 0.6764 GB, free: 40.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.7916, allocations: 0 / 0.6764 GB, free: 40.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002268/0.7939, allocations: 2.184 MB / 0.6785 GB, free: 37.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.796, allocations: 485.1 kB / 0.679 GB, free: 37.35 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03908/0.835, allocations: 36.22 MB / 0.7144 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/0.8386, allocations: 2.961 MB / 0.7173 GB, free: 10.35 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003183/0.8418, allocations: 1.382 MB / 0.7186 GB, free: 8.965 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/0.844, allocations: 1.636 MB / 0.7202 GB, free: 7.328 MB / 478.1 MB Notification: Performance of SimCode: time 1.133e-06/0.8441, allocations: 0 / 0.7202 GB, free: 7.328 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1408/0.9849, allocations: 65.16 MB / 0.7838 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.11/21.1, allocations: 14.44 kB / 0.7839 GB, free: 6.449 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)