Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.01091/0.01091, allocations: 97.75 kB / 15.73 MB, free: 5.949 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.002395/0.002395, allocations: 193.9 kB / 16.67 MB, free: 5.871 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.168/2.168, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.06286/0.06286, allocations: 9.125 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.001651, allocations: 55.91 kB / 414.1 MB, free: 21.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1523, allocations: 51.44 MB / 465.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01522/0.1676, allocations: 10.49 MB / 476.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008234/0.1759, allocations: 2.977 MB / 479 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.1784, allocations: 47.88 kB / 479.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002148/0.1806, allocations: 448.8 kB / 479.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008516/0.1893, allocations: 1.634 MB / 481.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.191, allocations: 219.6 kB / 481.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007395/0.1984, allocations: 3.022 MB / 484.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003039/0.2015, allocations: 1.178 MB / 485.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003014/0.2046, allocations: 1.101 MB / 486.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00345/0.2081, allocations: 1.545 MB / 488.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001747/0.2099, allocations: 276 kB / 488.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004048/0.214, allocations: 0.8777 MB / 489.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003763/0.2178, allocations: 1.402 MB / 490.8 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005282/0.2231, allocations: 1.86 MB / 492.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01432/0.2375, allocations: 5.738 MB / 498.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.2375, allocations: 0 / 498.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.2376, allocations: 0 / 498.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000264/0.2378, allocations: 0 / 498.4 MB, free: 1.109 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.02756/0.2654, allocations: 5.839 MB / 0.4924 GB, free: 11.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001202/0.2656, allocations: 16.03 kB / 0.4924 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003648/0.2693, allocations: 0.6301 MB / 0.493 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008805/0.2781, allocations: 1.855 MB / 0.4948 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006349/0.2845, allocations: 1.588 MB / 0.4964 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003847/0.285, allocations: 192.6 kB / 0.4966 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/0.2865, allocations: 239.8 kB / 0.4968 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.34/0.6265, allocations: 9.309 MB / 0.5059 GB, free: 39.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002195/0.6268, allocations: 29.28 kB / 0.5059 GB, free: 39.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009025/0.6277, allocations: 114.6 kB / 0.506 GB, free: 39.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006485/0.6342, allocations: 2.073 MB / 0.508 GB, free: 39.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02945/0.6637, allocations: 8.241 MB / 0.5161 GB, free: 37.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06941/0.7332, allocations: 30 MB / 0.5454 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/0.7466, allocations: 3.032 MB / 0.5484 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003277/0.7499, allocations: 1.12 MB / 0.5494 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01306/0.763, allocations: 6.297 MB / 0.5556 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.7632, allocations: 51.81 kB / 0.5556 GB, free: 2.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 6.201e-06/0.7632, allocations: 4 kB / 0.5556 GB, free: 2.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.02879/0.792, allocations: 8.357 MB / 0.5638 GB, free: 9.992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.7921, allocations: 73.41 kB / 0.5639 GB, free: 9.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/0.8036, allocations: 3.085 MB / 0.5669 GB, free: 6.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005189/0.8042, allocations: 57.7 kB / 0.5669 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003757/0.808, allocations: 2.517 MB / 0.5694 GB, free: 4.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001899/0.8099, allocations: 0.8835 MB / 0.5703 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004652/0.8146, allocations: 0.9893 MB / 0.5712 GB, free: 2.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.8149, allocations: 309 kB / 0.5715 GB, free: 2.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00621/0.8211, allocations: 1.641 MB / 0.5731 GB, free: 372 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009998/0.8312, allocations: 4.248 MB / 0.5773 GB, free: 10.83 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01606/0.8473, allocations: 6.384 MB / 0.5835 GB, free: 3.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/0.8475, allocations: 24 kB / 0.5835 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.02556/0.8731, allocations: 6.498 MB / 0.5899 GB, free: 12.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002537/0.8734, allocations: 44 kB / 0.5899 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003136/0.8738, allocations: 92.91 kB / 0.59 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004149/0.878, allocations: 0.7288 MB / 0.5907 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007562/0.8856, allocations: 1.049 MB / 0.5917 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03044/0.9161, allocations: 13.6 MB / 0.605 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007338/0.9236, allocations: 259.9 kB / 0.6053 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001648/0.9253, allocations: 292 kB / 0.6056 GB, free: 11.86 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 (583): * Single equations (assignments): 574 * 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,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.006576/0.9319, allocations: 1.79 MB / 0.6073 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/0.9332, allocations: 298 kB / 0.6076 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/0.945, allocations: 3.128 MB / 0.6106 GB, free: 6.609 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002316/0.9453, allocations: 35.98 kB / 0.6107 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.066e-05/0.9454, allocations: 4 kB / 0.6107 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.906e-05/0.9454, allocations: 11.95 kB / 0.6107 GB, free: 6.559 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03291/0.9784, allocations: 8.218 MB / 0.6187 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.911e-05/0.9785, allocations: 7.938 kB / 0.6187 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002068/0.9806, allocations: 295.6 kB / 0.619 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002538/0.9831, allocations: 0.5738 MB / 0.6196 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003608/0.9835, allocations: 43.98 kB / 0.6196 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02051/1.004, allocations: 11.82 MB / 0.6311 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.6e-05/1.004, allocations: 11.88 kB / 0.6312 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01388/1.018, allocations: 4.702 MB / 0.6357 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/1.02, allocations: 371.1 kB / 0.6361 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.022, allocations: 36 kB / 0.6361 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00297/1.025, allocations: 100.2 kB / 0.6362 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000767/1.025, allocations: 149.7 kB / 0.6364 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003647/1.026, allocations: 67.98 kB / 0.6364 GB, free: 11.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007631/1.033, allocations: 1.972 MB / 0.6384 GB, free: 9.227 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.92e-07/1.033, allocations: 0 / 0.6384 GB, free: 9.227 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009718/1.043, allocations: 0.9023 MB / 0.6392 GB, free: 8.324 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (170): * Single equations (assignments): 161 * 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%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01691/1.06, allocations: 5.382 MB / 0.6445 GB, free: 2.852 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01501/1.075, allocations: 4.736 MB / 0.6491 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/1.075, allocations: 1.625 kB / 0.6491 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006048/1.081, allocations: 1.989 MB / 0.6511 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006234/1.088, allocations: 483.2 kB / 0.6515 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1175/1.205, allocations: 35.46 MB / 0.6862 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009621/1.215, allocations: 2.921 MB / 0.689 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007769/1.223, allocations: 1.378 MB / 0.6904 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005501/1.228, allocations: 1.632 MB / 0.692 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of SimCode: time 2.033e-06/1.228, allocations: 0 / 0.692 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5568/1.785, allocations: 61.76 MB / 0.7523 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.12/40.9, allocations: 6.719 kB / 0.7523 GB, free: 160.2 MB / 0.5294 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)