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.006138/0.006137, allocations: 104.4 kB / 15.74 MB, free: 6.027 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.00136/0.00136, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1514/0.1514, allocations: 9.102 MB / 299.7 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 72.09 kB / 414.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2409, allocations: 51.42 MB / 465.6 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.008293/0.2493, allocations: 8.504 MB / 474.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005068/0.2544, allocations: 2.588 MB / 476.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.2556, allocations: 34.19 kB / 476.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008637/0.2564, allocations: 354.2 kB / 477 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00287/0.2594, allocations: 1.276 MB / 478.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003973/0.2598, allocations: 127.1 kB / 478.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003118/0.263, allocations: 2.437 MB / 480.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.264, allocations: 0.8405 MB / 481.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.2651, allocations: 0.863 MB / 482.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.2664, allocations: 1.262 MB / 483.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004336/0.2668, allocations: 223.2 kB / 484.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001402/0.2682, allocations: 0.7475 MB / 484.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008909/0.2691, allocations: 1.179 MB / 486 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.2704, allocations: 1.517 MB / 487.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004819/0.2752, allocations: 4.883 MB / 492.4 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2752, allocations: 1.094 kB / 492.4 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2752, allocations: 3.938 kB / 492.4 MB, free: 272 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.2753, allocations: 0 / 492.4 MB, free: 272 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.01754/0.2929, allocations: 4.898 MB / 497.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.293, allocations: 12.03 kB / 497.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001255/0.2942, allocations: 0.5224 MB / 497.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007356/0.3016, allocations: 1.781 MB / 499.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/0.3053, allocations: 1.4 MB / 0.4893 GB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.3055, allocations: 151.6 kB / 0.4894 GB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005711/0.306, allocations: 187.8 kB / 0.4896 GB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01608/0.3221, allocations: 8.155 MB / 0.4976 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.3223, allocations: 23.77 kB / 0.4976 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007005/0.323, allocations: 91.81 kB / 0.4977 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003497/0.3265, allocations: 1.844 MB / 0.4995 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01774/0.3443, allocations: 7.796 MB / 0.5071 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04184/0.3861, allocations: 24.71 MB / 0.5312 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009752/0.3959, allocations: 2.659 MB / 0.5338 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.3979, allocations: 0.9924 MB / 0.5348 GB, free: 8.984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00702/0.4049, allocations: 4.349 MB / 0.539 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/0.405, allocations: 51.55 kB / 0.5391 GB, free: 4.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=142): time 3.626e-06/0.405, allocations: 0 / 0.5391 GB, free: 4.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=167): time 0.01825/0.4233, allocations: 7.816 MB / 0.5467 GB, free: 12.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.4234, allocations: 68.7 kB / 0.5468 GB, free: 12.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/0.4275, allocations: 2.543 MB / 0.5492 GB, free: 9.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.4277, allocations: 45.7 kB / 0.5493 GB, free: 9.543 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.4294, allocations: 2.064 MB / 0.5513 GB, free: 7.457 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008964/0.4303, allocations: 0.6433 MB / 0.5519 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.4316, allocations: 0.7668 MB / 0.5527 GB, free: 6.035 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4318, allocations: 309.1 kB / 0.553 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/0.4342, allocations: 1.335 MB / 0.5543 GB, free: 4.395 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004455/0.4387, allocations: 3.387 MB / 0.5576 GB, free: 12 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006981/0.4457, allocations: 5.1 MB / 0.5626 GB, free: 9.914 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.688e-05/0.4458, allocations: 23.98 kB / 0.5626 GB, free: 9.891 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01096/0.4568, allocations: 5.054 MB / 0.5675 GB, free: 4.828 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.728e-05/0.4569, allocations: 36 kB / 0.5676 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001133/0.457, allocations: 72 kB / 0.5676 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.4584, allocations: 434.9 kB / 0.568 GB, free: 4.293 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003074/0.4614, allocations: 0.8385 MB / 0.5689 GB, free: 3.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008359/0.4698, allocations: 5.917 MB / 0.5746 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/0.473, allocations: 191.9 kB / 0.5748 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000722/0.4737, allocations: 228 kB / 0.575 GB, free: 12.83 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.003355/0.4771, allocations: 1.533 MB / 0.5765 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005529/0.4776, allocations: 226.5 kB / 0.5768 GB, free: 11.06 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004986/0.4826, allocations: 2.357 MB / 0.5791 GB, free: 8.691 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00012/0.4828, allocations: 31.98 kB / 0.5791 GB, free: 8.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/0.4828, allocations: 11.92 kB / 0.5791 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.546e-05/0.4829, allocations: 11.97 kB / 0.5791 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01354/0.4964, allocations: 6.064 MB / 0.585 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/0.4965, allocations: 4 kB / 0.585 GB, free: 2.438 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.4975, allocations: 227.9 kB / 0.5853 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008682/0.4984, allocations: 284.4 kB / 0.5855 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.4985, allocations: 32 kB / 0.5856 GB, free: 1.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2223/0.7208, allocations: 4.685 MB / 0.5901 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.7208, allocations: 3.594 kB / 0.5901 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006203/0.727, allocations: 3.545 MB / 0.5936 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008252/0.7279, allocations: 306.3 kB / 0.5939 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/0.7283, allocations: 29.22 kB / 0.5939 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008834/0.7292, allocations: 62.86 kB / 0.594 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002737/0.7295, allocations: 103 kB / 0.5941 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.7296, allocations: 45.47 kB / 0.5941 GB, free: 108.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.7324, allocations: 1.644 MB / 0.5957 GB, free: 108.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7324, allocations: 0 / 0.5957 GB, free: 108.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003271/0.7357, allocations: 0.6927 MB / 0.5964 GB, free: 108 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.005599/0.7413, allocations: 4.194 MB / 0.6005 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00613/0.7475, allocations: 3.52 MB / 0.6039 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/0.7475, allocations: 0 / 0.6039 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.7495, allocations: 1.322 MB / 0.6052 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.7517, allocations: 396.9 kB / 0.6056 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0399/0.7916, allocations: 28.17 MB / 0.6331 GB, free: 84.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.7942, allocations: 2.553 MB / 0.6356 GB, free: 82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002333/0.7966, allocations: 1.165 MB / 0.6367 GB, free: 80.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/0.7983, allocations: 1.272 MB / 0.638 GB, free: 79.55 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.7983, allocations: 0 / 0.638 GB, free: 79.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08035/0.8786, allocations: 48.89 MB / 0.6857 GB, free: 30.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/17.51, allocations: 11.98 kB / 0.6857 GB, free: 30.89 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)