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.001229/0.001229, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001256/0.001256, allocations: 196.5 kB / 16.14 MB, free: 6.707 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.294/1.294, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1577/0.1577, allocations: 9.098 MB / 299 MB, free: 1.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.83 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09352, allocations: 51.43 MB / 412.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestIdealWheel): time 0.1906/0.2842, allocations: 23.45 MB / 436.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.2943, allocations: 5.396 MB / 441.6 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004262/0.2986, allocations: 86.16 kB / 441.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.2997, allocations: 299.8 kB / 442 MB, free: 28.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003017/0.3027, allocations: 1.19 MB / 443.2 MB, free: 27.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.3032, allocations: 103.2 kB / 443.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002788/0.306, allocations: 3.368 MB / 446.7 MB, free: 26.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.3072, allocations: 0.7742 MB / 447.4 MB, free: 26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00127/0.3085, allocations: 0.7277 MB / 448.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00152/0.3101, allocations: 1.275 MB / 449.4 MB, free: 25.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005194/0.3106, allocations: 129.7 kB / 449.6 MB, free: 25.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.3119, allocations: 0.6813 MB / 450.2 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.313, allocations: 1.094 MB / 451.3 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.3145, allocations: 1.427 MB / 452.8 MB, free: 23.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.3177, allocations: 4.499 MB / 457.3 MB, free: 21.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3177, allocations: 5.312 kB / 457.3 MB, free: 21.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.3178, allocations: 0 / 457.3 MB, free: 21.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.16e-05/0.3178, allocations: 0 / 457.3 MB, free: 21.96 MB / 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.01425/0.3321, allocations: 4.817 MB / 462.1 MB, free: 19.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3321, allocations: 9.75 kB / 462.1 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005753/0.3327, allocations: 0.521 MB / 462.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006363/0.3391, allocations: 1.77 MB / 464.4 MB, free: 19.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002166/0.3413, allocations: 1.391 MB / 465.8 MB, free: 18.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.013e-05/0.3414, allocations: 144.8 kB / 465.9 MB, free: 18.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003861/0.3418, allocations: 185.7 kB / 466.1 MB, free: 18.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01496/0.3567, allocations: 8.148 MB / 474.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001606/0.3569, allocations: 28.83 kB / 474.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007343/0.3577, allocations: 93.3 kB / 474.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003383/0.3611, allocations: 1.83 MB / 476.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.3774, allocations: 7.815 MB / 484 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03309/0.4105, allocations: 24.72 MB / 0.4968 GB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008836/0.4194, allocations: 2.661 MB / 0.4994 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.421, allocations: 0.9925 MB / 0.5004 GB, free: 316 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005594/0.4266, allocations: 4.35 MB / 0.5046 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.4266, allocations: 47.5 kB / 0.5047 GB, free: 11.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 4.027e-06/0.4266, allocations: 4 kB / 0.5047 GB, free: 11.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01585/0.4425, allocations: 7.752 MB / 0.5123 GB, free: 3.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.4425, allocations: 72.59 kB / 0.5123 GB, free: 3.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/0.4459, allocations: 2.519 MB / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.395e-05/0.446, allocations: 49.7 kB / 0.5148 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.4472, allocations: 2 MB / 0.5168 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.4476, allocations: 0.6089 MB / 0.5174 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009801/0.4486, allocations: 0.7779 MB / 0.5181 GB, free: 13.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.812e-05/0.4487, allocations: 301.1 kB / 0.5184 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.4508, allocations: 1.335 MB / 0.5197 GB, free: 11.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003269/0.4541, allocations: 3.383 MB / 0.523 GB, free: 7.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005713/0.4598, allocations: 5.104 MB / 0.528 GB, free: 1.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.845e-05/0.4599, allocations: 20 kB / 0.528 GB, free: 1.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007963/0.4678, allocations: 5.031 MB / 0.5329 GB, free: 12.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/0.4679, allocations: 39.98 kB / 0.533 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.475e-05/0.468, allocations: 72 kB / 0.5331 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.4692, allocations: 444.5 kB / 0.5335 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/0.4716, allocations: 0.8305 MB / 0.5343 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006352/0.478, allocations: 5.453 MB / 0.5396 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/0.4804, allocations: 195.9 kB / 0.5398 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003221/0.4807, allocations: 224 kB / 0.54 GB, free: 4.812 MB / 414.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.00206/0.4828, allocations: 1.539 MB / 0.5415 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/0.4831, allocations: 217.2 kB / 0.5417 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003841/0.487, allocations: 2.357 MB / 0.544 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/0.4871, allocations: 27.98 kB / 0.5441 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.4871, allocations: 4 kB / 0.5441 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.4871, allocations: 7.969 kB / 0.5441 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009706/0.4968, allocations: 6.112 MB / 0.55 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4968, allocations: 4 kB / 0.55 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.4978, allocations: 219.7 kB / 0.5502 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008127/0.4986, allocations: 288 kB / 0.5505 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-05/0.4987, allocations: 35.98 kB / 0.5506 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004466/0.5032, allocations: 4.334 MB / 0.5548 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5032, allocations: 0 / 0.5548 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00498/0.5082, allocations: 3.538 MB / 0.5582 GB, free: 1.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005375/0.5087, allocations: 298.3 kB / 0.5585 GB, free: 1.352 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003681/0.5091, allocations: 28 kB / 0.5586 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008885/0.51, allocations: 63.94 kB / 0.5586 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002007/0.5102, allocations: 97.11 kB / 0.5587 GB, free: 1.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.794e-05/0.5103, allocations: 44 kB / 0.5587 GB, free: 1.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002587/0.5129, allocations: 1.642 MB / 0.5604 GB, free: 15.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.5129, allocations: 288 / 0.5604 GB, free: 15.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002832/0.5158, allocations: 0.6952 MB / 0.561 GB, free: 14.77 MB / 446.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.005528/0.5213, allocations: 4.194 MB / 0.5651 GB, free: 10.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005434/0.5267, allocations: 3.499 MB / 0.5685 GB, free: 7.004 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5268, allocations: 0 / 0.5685 GB, free: 7.004 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.5286, allocations: 1.325 MB / 0.5698 GB, free: 5.652 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.5306, allocations: 360.1 kB / 0.5702 GB, free: 5.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.197/0.7276, allocations: 31.77 MB / 0.6012 GB, free: 92.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002702/0.7304, allocations: 2.556 MB / 0.6037 GB, free: 91.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00324/0.7336, allocations: 1.172 MB / 0.6048 GB, free: 91.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002059/0.7357, allocations: 1.266 MB / 0.6061 GB, free: 90.41 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7357, allocations: 0 / 0.6061 GB, free: 90.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06858/0.8043, allocations: 48.61 MB / 0.6536 GB, free: 63.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001273/0.8045, allocations: 237.5 kB / 0.6538 GB, free: 63.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/3.56, allocations: 0 / 0.6538 GB, free: 63.05 MB / 446.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)