Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.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.VehicleComponents.Examples.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel",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.004937/0.004937, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001095/0.001095, allocations: 195 kB / 16.67 MB, free: 5.934 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1591/0.1591, allocations: 9.098 MB / 299.6 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 71.83 kB / 414.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.248, allocations: 51.43 MB / 465.6 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.008177/0.2562, allocations: 8.498 MB / 474.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005309/0.2616, allocations: 2.589 MB / 476.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.2628, allocations: 34.19 kB / 476.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008896/0.2638, allocations: 354.6 kB / 477 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003399/0.2672, allocations: 1.315 MB / 478.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004294/0.2676, allocations: 123.5 kB / 478.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002728/0.2704, allocations: 2.436 MB / 480.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009084/0.2713, allocations: 0.8447 MB / 481.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.2726, allocations: 0.8686 MB / 482.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.2739, allocations: 1.261 MB / 483.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003805/0.2742, allocations: 223.5 kB / 484.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001247/0.2755, allocations: 0.7401 MB / 484.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008606/0.2764, allocations: 1.176 MB / 486 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.2774, allocations: 1.508 MB / 487.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004772/0.2822, allocations: 4.896 MB / 492.4 MB, free: 216 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2822, allocations: 0 / 492.4 MB, free: 216 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2822, allocations: 1.219 kB / 492.4 MB, free: 216 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001013/0.2823, allocations: 0 / 492.4 MB, free: 216 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1125 * Number of variables: 1125 Notification: Performance of Generate backend data structure: time 0.01717/0.2995, allocations: 4.906 MB / 497.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.2996, allocations: 11.97 kB / 497.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001124/0.3007, allocations: 0.5224 MB / 497.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007152/0.3079, allocations: 1.789 MB / 499.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003701/0.3116, allocations: 1.4 MB / 0.4893 GB, free: 8.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.3118, allocations: 151.6 kB / 0.4895 GB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006279/0.3124, allocations: 187.8 kB / 0.4896 GB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.3268, allocations: 8.151 MB / 0.4976 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.91e-05/0.3269, allocations: 27.77 kB / 0.4976 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003251/0.3272, allocations: 91.8 kB / 0.4977 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003174/0.3304, allocations: 1.836 MB / 0.4995 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.3471, allocations: 7.796 MB / 0.5071 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03885/0.386, allocations: 24.71 MB / 0.5312 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009478/0.3955, allocations: 2.657 MB / 0.5338 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.3973, allocations: 0.9924 MB / 0.5348 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007176/0.4045, allocations: 4.353 MB / 0.5391 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.4046, allocations: 43.56 kB / 0.5391 GB, free: 4.141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=142): time 3.477e-06/0.4046, allocations: 0 / 0.5391 GB, free: 4.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=167): time 0.01832/0.4229, allocations: 7.824 MB / 0.5467 GB, free: 12.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.423, allocations: 64.72 kB / 0.5468 GB, free: 12.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/0.428, allocations: 2.531 MB / 0.5493 GB, free: 9.574 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002158/0.4283, allocations: 53.7 kB / 0.5493 GB, free: 9.516 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/0.43, allocations: 2.076 MB / 0.5514 GB, free: 7.418 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008097/0.4309, allocations: 0.6394 MB / 0.552 GB, free: 6.773 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/0.4323, allocations: 0.7746 MB / 0.5527 GB, free: 5.992 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4324, allocations: 301.1 kB / 0.553 GB, free: 5.695 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/0.435, allocations: 1.335 MB / 0.5543 GB, free: 4.359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004287/0.4393, allocations: 3.391 MB / 0.5576 GB, free: 15.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006351/0.4457, allocations: 5.107 MB / 0.5626 GB, free: 9.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-05/0.4458, allocations: 20 kB / 0.5626 GB, free: 9.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009248/0.4551, allocations: 5.033 MB / 0.5676 GB, free: 4.809 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.388e-05/0.4552, allocations: 36 kB / 0.5676 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.4553, allocations: 72.16 kB / 0.5677 GB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.4566, allocations: 442.9 kB / 0.5681 GB, free: 4.266 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003128/0.4597, allocations: 0.8305 MB / 0.5689 GB, free: 3.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00779/0.4675, allocations: 5.913 MB / 0.5747 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/0.4707, allocations: 199.8 kB / 0.5749 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006509/0.4714, allocations: 235.9 kB / 0.5751 GB, free: 12.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 325 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (456): * Single equations (assignments): 450 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,56.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002802/0.4742, allocations: 1.525 MB / 0.5766 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004429/0.4747, allocations: 226.5 kB / 0.5768 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.4786, allocations: 2.361 MB / 0.5791 GB, free: 8.664 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001062/0.4787, allocations: 31.97 kB / 0.5791 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.4787, allocations: 7.938 kB / 0.5791 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.4788, allocations: 7.969 kB / 0.5791 GB, free: 8.617 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.4895, allocations: 6.079 MB / 0.5851 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.4896, allocations: 4.25 kB / 0.5851 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009442/0.4905, allocations: 227.6 kB / 0.5853 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008004/0.4913, allocations: 284.8 kB / 0.5856 GB, free: 1.898 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-05/0.4914, allocations: 31.98 kB / 0.5856 GB, free: 1.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2273/0.7188, allocations: 4.671 MB / 0.5902 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7188, allocations: 10.55 kB / 0.5902 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00557/0.7244, allocations: 3.55 MB / 0.5936 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007219/0.7251, allocations: 303.3 kB / 0.5939 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002881/0.7254, allocations: 28.97 kB / 0.594 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000868/0.7263, allocations: 58.3 kB / 0.594 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.7266, allocations: 100.8 kB / 0.5941 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.7267, allocations: 49.66 kB / 0.5942 GB, free: 108.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002616/0.7293, allocations: 1.639 MB / 0.5958 GB, free: 107.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7293, allocations: 2.656 kB / 0.5958 GB, free: 107.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003463/0.7328, allocations: 0.6942 MB / 0.5964 GB, free: 107.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (prismatic.s,revolute.phi,revolute.w,engineTorque.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 (124): * Single equations (assignments): 118 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,14,64.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005787/0.7386, allocations: 4.19 MB / 0.6005 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006003/0.7446, allocations: 3.523 MB / 0.604 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.7447, allocations: 1.5 kB / 0.604 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.7466, allocations: 1.331 MB / 0.6053 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.7487, allocations: 381.1 kB / 0.6056 GB, free: 103.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03409/0.7828, allocations: 28.17 MB / 0.6331 GB, free: 84.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/0.7852, allocations: 2.556 MB / 0.6356 GB, free: 82.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002341/0.7875, allocations: 1.168 MB / 0.6368 GB, free: 80.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/0.7891, allocations: 1.265 MB / 0.638 GB, free: 79.61 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.7891, allocations: 0 / 0.638 GB, free: 79.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09191/0.881, allocations: 48.89 MB / 0.6858 GB, free: 30.96 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.83, allocations: 10.95 kB / 0.6858 GB, free: 30.95 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe 2>&1)