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.004662/0.004662, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001103/0.001103, allocations: 188.6 kB / 16.67 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 1.275/1.275, 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.1444/0.1444, allocations: 9.108 MB / 299.6 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 63.84 kB / 414.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.232, allocations: 51.43 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.00818/0.2402, allocations: 8.489 MB / 474.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005167/0.2454, allocations: 2.599 MB / 476.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.2467, allocations: 34.94 kB / 476.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008116/0.2475, allocations: 350.8 kB / 477 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002649/0.2502, allocations: 1.273 MB / 478.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.2506, allocations: 123.2 kB / 478.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00249/0.2531, allocations: 2.44 MB / 480.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008519/0.2539, allocations: 0.8425 MB / 481.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009666/0.2549, allocations: 0.8677 MB / 482.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.2561, allocations: 1.265 MB / 483.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004/0.2565, allocations: 223.9 kB / 484.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.2579, allocations: 0.7319 MB / 484.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009506/0.2588, allocations: 1.176 MB / 486 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001151/0.26, allocations: 1.524 MB / 487.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004106/0.2641, allocations: 4.863 MB / 492.4 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.2641, allocations: 0.9688 kB / 492.4 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.2641, allocations: 0 / 492.4 MB, free: 328 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.48e-05/0.2642, allocations: 0 / 492.4 MB, free: 328 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.01561/0.2799, allocations: 4.822 MB / 497.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.2799, allocations: 8.031 kB / 497.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007921/0.2807, allocations: 0.5185 MB / 497.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006571/0.2873, allocations: 1.775 MB / 499.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002715/0.29, allocations: 1.396 MB / 0.4891 GB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.2902, allocations: 147.6 kB / 0.4893 GB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004976/0.2907, allocations: 187.8 kB / 0.4895 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.3044, allocations: 8.151 MB / 0.4974 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.258e-05/0.3045, allocations: 23.72 kB / 0.4974 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003177/0.3048, allocations: 95.8 kB / 0.4975 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002846/0.3076, allocations: 1.844 MB / 0.4993 GB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/0.3226, allocations: 7.804 MB / 0.507 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0336/0.3563, allocations: 24.65 MB / 0.531 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008994/0.3653, allocations: 2.654 MB / 0.5336 GB, free: 10.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.3669, allocations: 0.9963 MB / 0.5346 GB, free: 9.172 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006098/0.373, allocations: 4.346 MB / 0.5388 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.373, allocations: 43.56 kB / 0.5389 GB, free: 4.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=142): time 3.376e-06/0.3731, allocations: 0 / 0.5389 GB, free: 4.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=167): time 0.01619/0.3893, allocations: 7.76 MB / 0.5465 GB, free: 12.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.3893, allocations: 64.72 kB / 0.5465 GB, free: 12.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003832/0.3932, allocations: 2.531 MB / 0.549 GB, free: 9.859 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.3933, allocations: 45.7 kB / 0.549 GB, free: 9.809 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.3947, allocations: 2 MB / 0.551 GB, free: 7.777 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005996/0.3953, allocations: 0.6051 MB / 0.5516 GB, free: 7.164 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001032/0.3963, allocations: 0.774 MB / 0.5523 GB, free: 6.383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.3964, allocations: 301.1 kB / 0.5526 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/0.3985, allocations: 1.335 MB / 0.5539 GB, free: 4.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/0.4018, allocations: 3.391 MB / 0.5572 GB, free: 372 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005768/0.4076, allocations: 5.106 MB / 0.5622 GB, free: 10.26 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.213e-05/0.4076, allocations: 20 kB / 0.5622 GB, free: 10.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008676/0.4163, allocations: 5.028 MB / 0.5672 GB, free: 5.203 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.294e-05/0.4164, allocations: 38.19 kB / 0.5672 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.808e-05/0.4165, allocations: 76.08 kB / 0.5673 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.4176, allocations: 438.9 kB / 0.5677 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.4204, allocations: 0.8305 MB / 0.5685 GB, free: 3.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007233/0.4277, allocations: 5.909 MB / 0.5743 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/0.4306, allocations: 187.9 kB / 0.5744 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004683/0.4311, allocations: 232 kB / 0.5747 GB, free: 13.21 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.002361/0.4334, allocations: 1.533 MB / 0.5762 GB, free: 11.67 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.4338, allocations: 221.2 kB / 0.5764 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003961/0.4378, allocations: 2.357 MB / 0.5787 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/0.4379, allocations: 27.98 kB / 0.5787 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.556e-05/0.4379, allocations: 7.938 kB / 0.5787 GB, free: 9.043 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4379, allocations: 7.969 kB / 0.5787 GB, free: 9.035 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009811/0.4477, allocations: 6.071 MB / 0.5846 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.4478, allocations: 4 kB / 0.5846 GB, free: 2.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009455/0.4487, allocations: 223.6 kB / 0.5849 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008023/0.4495, allocations: 292.6 kB / 0.5851 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.124e-05/0.4497, allocations: 31.98 kB / 0.5852 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2051/0.6548, allocations: 4.67 MB / 0.5897 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.6548, allocations: 3.062 kB / 0.5897 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005337/0.6602, allocations: 3.539 MB / 0.5932 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/0.6608, allocations: 301.5 kB / 0.5935 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002802/0.6611, allocations: 25.05 kB / 0.5935 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007974/0.6619, allocations: 62.44 kB / 0.5936 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.6621, allocations: 100.9 kB / 0.5937 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-05/0.6622, allocations: 44.66 kB / 0.5937 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00252/0.6647, allocations: 1.637 MB / 0.5953 GB, free: 108.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6647, allocations: 0 / 0.5953 GB, free: 108.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002858/0.6676, allocations: 0.6952 MB / 0.596 GB, free: 108.1 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.005459/0.6731, allocations: 4.186 MB / 0.6001 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005418/0.6785, allocations: 3.521 MB / 0.6035 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.6785, allocations: 1.156 kB / 0.6035 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.6803, allocations: 1.32 MB / 0.6048 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.6821, allocations: 395.7 kB / 0.6052 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.713, allocations: 28.05 MB / 0.6326 GB, free: 84.63 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002065/0.7151, allocations: 2.559 MB / 0.6351 GB, free: 82.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002149/0.7172, allocations: 1.168 MB / 0.6362 GB, free: 81.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001316/0.7186, allocations: 1.265 MB / 0.6374 GB, free: 80.02 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7186, allocations: 0 / 0.6374 GB, free: 80.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06805/0.7866, allocations: 49.65 MB / 0.6859 GB, free: 30.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.52, allocations: 24.02 kB / 0.6859 GB, free: 30.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestIdealWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestIdealWheel.pipe 2>&1)