Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine",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.001199/0.001199, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1587/0.1587, allocations: 9.098 MB / 299.5 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 59.91 kB / 362.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 51.43 MB / 413.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.1957/0.3032, allocations: 10.08 MB / 423.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005598/0.3088, allocations: 2.89 MB / 426.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.3101, allocations: 42.34 kB / 426.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008872/0.3111, allocations: 426.2 kB / 426.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.3142, allocations: 1.606 MB / 428.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.3147, allocations: 177.6 kB / 428.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002899/0.3176, allocations: 2.961 MB / 431.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.3188, allocations: 1.045 MB / 432.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.32, allocations: 1.083 MB / 433.8 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001361/0.3214, allocations: 1.575 MB / 435.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000433/0.3218, allocations: 269.2 kB / 435.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.3232, allocations: 0.8689 MB / 436.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009565/0.3242, allocations: 1.479 MB / 438 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.3255, allocations: 1.859 MB / 439.8 MB, free: 31.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004068/0.3296, allocations: 5.496 MB / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3296, allocations: 0 / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3296, allocations: 3.156 kB / 445.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001276/0.3298, allocations: 1.219 kB / 445.3 MB, free: 29.89 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02558/0.3553, allocations: 6.968 MB / 452.3 MB, free: 27.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.3554, allocations: 13.03 kB / 452.3 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001107/0.3565, allocations: 0.6391 MB / 453 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006721/0.3633, allocations: 1.854 MB / 454.8 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004562/0.3679, allocations: 1.721 MB / 456.5 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.3681, allocations: 183 kB / 456.7 MB, free: 25.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008558/0.369, allocations: 250.7 kB / 457 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02004/0.389, allocations: 10.4 MB / 467.3 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/0.3891, allocations: 38.19 kB / 467.4 MB, free: 21.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000415/0.3896, allocations: 113.7 kB / 467.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00363/0.3932, allocations: 2.154 MB / 469.7 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/0.415, allocations: 10.36 MB / 480 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04839/0.4634, allocations: 33.52 MB / 0.5015 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0191/0.4825, allocations: 4.455 MB / 0.5058 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003267/0.4858, allocations: 1.655 MB / 0.5075 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01421/0.5001, allocations: 9.395 MB / 0.5166 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.399e-05/0.5002, allocations: 48.56 kB / 0.5167 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=232): time 6.513e-06/0.5002, allocations: 0 / 0.5167 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=272): time 0.03321/0.5334, allocations: 13.31 MB / 0.5297 GB, free: 496 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005114/0.5386, allocations: 3.533 MB / 0.5331 GB, free: 12.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006424/0.545, allocations: 3.103 MB / 0.5362 GB, free: 9.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003844/0.5455, allocations: 64.75 kB / 0.5362 GB, free: 9.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001957/0.5474, allocations: 2.417 MB / 0.5386 GB, free: 7.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.5488, allocations: 0.9799 MB / 0.5395 GB, free: 6.207 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002772/0.5516, allocations: 1.071 MB / 0.5406 GB, free: 5.129 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.5517, allocations: 301.1 kB / 0.5409 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003648/0.5554, allocations: 1.893 MB / 0.5427 GB, free: 2.934 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006103/0.5615, allocations: 4.629 MB / 0.5472 GB, free: 12.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.5719, allocations: 7.105 MB / 0.5542 GB, free: 4.535 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/0.572, allocations: 28 kB / 0.5542 GB, free: 4.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01433/0.5864, allocations: 6.993 MB / 0.561 GB, free: 13.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.5866, allocations: 48.34 kB / 0.5611 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/0.5868, allocations: 96 kB / 0.5612 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.5884, allocations: 0.5447 MB / 0.5617 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/0.5932, allocations: 1.224 MB / 0.5629 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009954/0.6031, allocations: 7.358 MB / 0.5701 GB, free: 3.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004265/0.6074, allocations: 275.9 kB / 0.5703 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/0.6085, allocations: 318.3 kB / 0.5707 GB, free: 3.379 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (656): * Single equations (assignments): 650 * 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 {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003877/0.6124, allocations: 1.847 MB / 0.5725 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000784/0.6132, allocations: 292.2 kB / 0.5727 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2043/0.8175, allocations: 3.789 MB / 0.5764 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/0.8176, allocations: 35.59 kB / 0.5765 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.8177, allocations: 10.28 kB / 0.5765 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.309e-05/0.8177, allocations: 13.17 kB / 0.5765 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01511/0.8328, allocations: 10.72 MB / 0.587 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.8329, allocations: 6.375 kB / 0.587 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.8342, allocations: 377.1 kB / 0.5873 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.8356, allocations: 0.5551 MB / 0.5879 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.8357, allocations: 55.2 kB / 0.5879 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00801/0.8438, allocations: 8.106 MB / 0.5958 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003073/0.8469, allocations: 3.279 MB / 0.599 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007928/0.8548, allocations: 5.748 MB / 0.6047 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.8561, allocations: 0.6281 MB / 0.6053 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004372/0.8566, allocations: 48.09 kB / 0.6053 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.8579, allocations: 124.8 kB / 0.6054 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003937/0.8583, allocations: 179.9 kB / 0.6056 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.8584, allocations: 76.73 kB / 0.6057 GB, free: 109.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.8611, allocations: 1.985 MB / 0.6076 GB, free: 109.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8611, allocations: 0 / 0.6076 GB, free: 109.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003802/0.8649, allocations: 0.9795 MB / 0.6086 GB, free: 109 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,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 (203): * Single equations (assignments): 197 * 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 {(6,26,55.6%), (3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008149/0.8731, allocations: 6.44 MB / 0.6149 GB, free: 106.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.015/0.8881, allocations: 8.755 MB / 0.6234 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/0.8882, allocations: 0.9375 kB / 0.6234 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003579/0.8918, allocations: 2.112 MB / 0.6255 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/0.8956, allocations: 474.2 kB / 0.6259 GB, free: 103.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05738/0.953, allocations: 42.56 MB / 0.6675 GB, free: 59.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003559/0.9566, allocations: 2.996 MB / 0.6704 GB, free: 56.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004004/0.9607, allocations: 1.594 MB / 0.672 GB, free: 54.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/0.9629, allocations: 1.651 MB / 0.6736 GB, free: 53.29 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.9629, allocations: 4 kB / 0.6736 GB, free: 53.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2992/1.262, allocations: 68.64 MB / 0.7406 GB, free: 126.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.47, allocations: 7.531 kB / 0.7406 GB, free: 126.4 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_SingleTrackWithEngine.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)