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.006541/0.006541, allocations: 95.58 kB / 15.73 MB, free: 6.039 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.002215/0.002215, allocations: 201.6 kB / 16.68 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 2.169/2.169, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.3263/0.3263, allocations: 9.096 MB / 299.6 MB, free: 1.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002541/0.002541, allocations: 64.12 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4614/0.464, allocations: 51.44 MB / 465.6 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01879/0.4829, allocations: 10.48 MB / 476.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.4948, allocations: 2.969 MB / 479 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004564/0.4995, allocations: 46.91 kB / 479.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00339/0.503, allocations: 446.6 kB / 479.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009934/0.5131, allocations: 1.64 MB / 481.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00233/0.5155, allocations: 215.4 kB / 481.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008725/0.5242, allocations: 3.029 MB / 484.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004097/0.5284, allocations: 1.179 MB / 485.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003795/0.5323, allocations: 1.103 MB / 486.7 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004048/0.5364, allocations: 1.544 MB / 488.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001905/0.5383, allocations: 276.8 kB / 488.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004826/0.5432, allocations: 0.8764 MB / 489.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003912/0.5472, allocations: 1.401 MB / 490.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007198/0.5544, allocations: 1.861 MB / 492.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.5709, allocations: 5.733 MB / 498.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.571, allocations: 4 kB / 498.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.571, allocations: 0 / 498.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000281/0.5713, allocations: 0 / 498.4 MB, free: 11.36 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.02848/0.5998, allocations: 5.839 MB / 0.4924 GB, free: 5.449 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.309e-05/0.5999, allocations: 11.97 kB / 0.4924 GB, free: 5.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003445/0.6034, allocations: 0.634 MB / 0.493 GB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01368/0.6171, allocations: 1.859 MB / 0.4948 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007343/0.6245, allocations: 1.584 MB / 0.4964 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004377/0.6251, allocations: 184.6 kB / 0.4965 GB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001927/0.627, allocations: 259.7 kB / 0.4968 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03467/0.6617, allocations: 9.299 MB / 0.5059 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003197/0.6621, allocations: 31.75 kB / 0.5059 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001904/0.6641, allocations: 123.8 kB / 0.506 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006649/0.6707, allocations: 2.075 MB / 0.5081 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03009/0.7009, allocations: 8.241 MB / 0.5161 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.079/0.78, allocations: 29.98 MB / 0.5454 GB, free: 13.97 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01481/0.7949, allocations: 3.034 MB / 0.5483 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003555/0.7985, allocations: 1.116 MB / 0.5494 GB, free: 9.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01729/0.8158, allocations: 6.285 MB / 0.5556 GB, free: 2.754 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.064e-05/0.816, allocations: 55.81 kB / 0.5556 GB, free: 2.691 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 8.315e-06/0.816, allocations: 0 / 0.5556 GB, free: 2.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.05587/0.8719, allocations: 12.37 MB / 0.5677 GB, free: 6.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01899/0.8909, allocations: 9.299 MB / 0.5768 GB, free: 12.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008966/0.9, allocations: 3.093 MB / 0.5798 GB, free: 9.277 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004374/0.9005, allocations: 61.69 kB / 0.5799 GB, free: 9.211 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00346/0.904, allocations: 2.525 MB / 0.5823 GB, free: 6.664 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001751/0.9058, allocations: 0.9068 MB / 0.5832 GB, free: 5.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00319/0.909, allocations: 1.001 MB / 0.5842 GB, free: 4.738 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.9092, allocations: 301.1 kB / 0.5845 GB, free: 4.441 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005498/0.9148, allocations: 1.697 MB / 0.5861 GB, free: 2.738 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4421/1.357, allocations: 4.306 MB / 0.5903 GB, free: 107.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.372, allocations: 6.502 MB / 0.5967 GB, free: 103 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002641/1.372, allocations: 26.88 kB / 0.5967 GB, free: 103 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.02935/1.401, allocations: 6.64 MB / 0.6032 GB, free: 100.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002479/1.402, allocations: 47.53 kB / 0.6033 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003589/1.402, allocations: 92.3 kB / 0.6033 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003868/1.406, allocations: 0.729 MB / 0.6041 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00712/1.413, allocations: 1.07 MB / 0.6051 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02313/1.436, allocations: 13.61 MB / 0.6184 GB, free: 90.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007946/1.444, allocations: 289.7 kB / 0.6187 GB, free: 90.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002248/1.447, allocations: 297.8 kB / 0.619 GB, free: 90.34 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.006956/1.454, allocations: 1.797 MB / 0.6207 GB, free: 89.49 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.455, allocations: 302 kB / 0.621 GB, free: 89.48 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.465, allocations: 3.438 MB / 0.6244 GB, free: 88.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008421/1.473, allocations: 2.961 MB / 0.6272 GB, free: 87.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-05/1.474, allocations: 15.56 kB / 0.6273 GB, free: 87.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.148e-05/1.474, allocations: 7.359 kB / 0.6273 GB, free: 87.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03173/1.505, allocations: 10.5 MB / 0.6375 GB, free: 81.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.154e-05/1.505, allocations: 0 / 0.6375 GB, free: 81.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/1.507, allocations: 276.3 kB / 0.6378 GB, free: 81.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/1.511, allocations: 0.7876 MB / 0.6385 GB, free: 80.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005047/1.511, allocations: 43.73 kB / 0.6386 GB, free: 80.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/1.531, allocations: 13.48 MB / 0.6518 GB, free: 66.77 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009154/1.54, allocations: 6.001 MB / 0.6576 GB, free: 60.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.553, allocations: 5.04 MB / 0.6625 GB, free: 55.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/1.554, allocations: 375.1 kB / 0.6629 GB, free: 54.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/1.556, allocations: 43.98 kB / 0.6629 GB, free: 54.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002663/1.559, allocations: 111.9 kB / 0.663 GB, free: 54.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007274/1.559, allocations: 153.7 kB / 0.6632 GB, free: 54.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002568/1.56, allocations: 71.5 kB / 0.6633 GB, free: 54.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005755/1.565, allocations: 1.976 MB / 0.6652 GB, free: 52.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.41e-07/1.565, allocations: 0 / 0.6652 GB, free: 52.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01156/1.577, allocations: 0.9843 MB / 0.6661 GB, free: 51.65 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.01316/1.59, allocations: 5.7 MB / 0.6717 GB, free: 45.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01213/1.602, allocations: 4.874 MB / 0.6765 GB, free: 40.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.603, allocations: 0 / 0.6765 GB, free: 40.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004867/1.607, allocations: 2.183 MB / 0.6786 GB, free: 38.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005/1.612, allocations: 476.2 kB / 0.6791 GB, free: 38.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09792/1.71, allocations: 36.22 MB / 0.7144 GB, free: 14.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0099/1.72, allocations: 2.957 MB / 0.7173 GB, free: 11.24 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007637/1.728, allocations: 1.386 MB / 0.7187 GB, free: 9.848 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005578/1.734, allocations: 1.628 MB / 0.7203 GB, free: 8.219 MB / 478.1 MB Notification: Performance of SimCode: time 2.265e-06/1.734, allocations: 0 / 0.7203 GB, free: 8.219 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2282/1.962, allocations: 65.17 MB / 0.7839 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.36/41.32, allocations: 8.062 kB / 0.7839 GB, free: 7.336 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)