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.001041/0.001041, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001064/0.001064, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.312/1.312, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1816/0.1816, allocations: 9.1 MB / 299.2 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09008/0.09132, allocations: 51.44 MB / 413 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.205/0.2964, allocations: 36.29 MB / 449.3 MB, free: 22.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.3117, allocations: 7.742 MB / 457 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007916/0.3196, allocations: 131.8 kB / 457.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.3211, allocations: 358 kB / 457.5 MB, free: 17.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.3255, allocations: 1.49 MB / 459 MB, free: 16.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.3263, allocations: 160.2 kB / 459.1 MB, free: 16.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003437/0.3297, allocations: 2.981 MB / 462.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.3313, allocations: 1.074 MB / 463.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.333, allocations: 1.086 MB / 464.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.3345, allocations: 1.699 MB / 466 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003274/0.3348, allocations: 266.8 kB / 466.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.3361, allocations: 0.885 MB / 467.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009175/0.337, allocations: 1.489 MB / 468.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.3382, allocations: 1.877 MB / 470.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004899/0.3431, allocations: 5.53 MB / 476 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3431, allocations: 0 / 476 MB, free: 9.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3431, allocations: 0 / 476 MB, free: 9.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001431/0.3433, allocations: 0 / 476 MB, free: 9.223 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.02824/0.3715, allocations: 6.966 MB / 483 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3716, allocations: 9.594 kB / 483 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009952/0.3726, allocations: 0.6382 MB / 483.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007183/0.3798, allocations: 1.854 MB / 485.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003624/0.3834, allocations: 1.72 MB / 487.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.3836, allocations: 184.1 kB / 487.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006727/0.3843, allocations: 250.3 kB / 487.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02006/0.4043, allocations: 10.41 MB / 498 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.4045, allocations: 28.61 kB / 498.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004441/0.405, allocations: 115.8 kB / 498.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00352/0.4085, allocations: 2.154 MB / 0.4886 GB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02236/0.4309, allocations: 10.36 MB / 0.4987 GB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05134/0.4822, allocations: 33.52 MB / 0.5314 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/0.5013, allocations: 4.45 MB / 0.5358 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.5044, allocations: 1.663 MB / 0.5374 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01221/0.5167, allocations: 9.39 MB / 0.5466 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.5167, allocations: 52.56 kB / 0.5466 GB, free: 15.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=232): time 4.649e-06/0.5168, allocations: 4 kB / 0.5466 GB, free: 15.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=272): time 0.02929/0.5461, allocations: 13.31 MB / 0.5596 GB, free: 2.047 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004019/0.5501, allocations: 3.523 MB / 0.5631 GB, free: 14.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004855/0.555, allocations: 3.095 MB / 0.5661 GB, free: 11.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003193/0.5553, allocations: 61.7 kB / 0.5662 GB, free: 11.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001456/0.5568, allocations: 2.42 MB / 0.5685 GB, free: 8.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009863/0.5578, allocations: 0.9827 MB / 0.5695 GB, free: 7.727 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001733/0.5595, allocations: 1.076 MB / 0.5705 GB, free: 6.641 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.5596, allocations: 301.1 kB / 0.5708 GB, free: 6.344 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003044/0.5627, allocations: 1.885 MB / 0.5727 GB, free: 4.453 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1832/0.7459, allocations: 4.634 MB / 0.5772 GB, free: 124.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008716/0.7546, allocations: 7.103 MB / 0.5841 GB, free: 120.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/0.7548, allocations: 26.03 kB / 0.5841 GB, free: 120.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01264/0.7674, allocations: 6.993 MB / 0.591 GB, free: 118.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.547e-05/0.7676, allocations: 46.81 kB / 0.591 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/0.7677, allocations: 93.25 kB / 0.5911 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.769, allocations: 0.5474 MB / 0.5916 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/0.7729, allocations: 1.222 MB / 0.5928 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007611/0.7806, allocations: 7.351 MB / 0.6 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/0.7846, allocations: 276.7 kB / 0.6003 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008856/0.7855, allocations: 315.1 kB / 0.6006 GB, free: 113.4 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.003399/0.789, allocations: 1.861 MB / 0.6024 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005371/0.7895, allocations: 290.1 kB / 0.6027 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005434/0.7949, allocations: 3.794 MB / 0.6064 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/0.7951, allocations: 42.09 kB / 0.6064 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.7951, allocations: 6.844 kB / 0.6064 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.7951, allocations: 13.88 kB / 0.6064 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/0.8105, allocations: 10.71 MB / 0.6169 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.8106, allocations: 4.625 kB / 0.6169 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.8121, allocations: 382.5 kB / 0.6173 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/0.8135, allocations: 0.5618 MB / 0.6178 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.8136, allocations: 52.75 kB / 0.6179 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009052/0.8227, allocations: 8.104 MB / 0.6258 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002982/0.8257, allocations: 3.287 MB / 0.629 GB, free: 99.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007358/0.8331, allocations: 5.759 MB / 0.6346 GB, free: 97.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/0.8343, allocations: 0.6186 MB / 0.6352 GB, free: 96.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/0.8347, allocations: 50.84 kB / 0.6353 GB, free: 96.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.8359, allocations: 119.4 kB / 0.6354 GB, free: 96.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003758/0.8363, allocations: 187.7 kB / 0.6356 GB, free: 96.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.8364, allocations: 78.16 kB / 0.6356 GB, free: 96.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002312/0.8387, allocations: 1.984 MB / 0.6376 GB, free: 95.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8387, allocations: 4 kB / 0.6376 GB, free: 95.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003507/0.8423, allocations: 0.972 MB / 0.6385 GB, free: 94.99 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.006617/0.8489, allocations: 6.448 MB / 0.6448 GB, free: 89.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01234/0.8612, allocations: 8.749 MB / 0.6534 GB, free: 80.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.8613, allocations: 0.6875 kB / 0.6534 GB, free: 80.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.8638, allocations: 2.105 MB / 0.6554 GB, free: 79.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.866, allocations: 464.3 kB / 0.6559 GB, free: 78.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04877/0.9148, allocations: 44.35 MB / 0.6992 GB, free: 28.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002436/0.9173, allocations: 2.996 MB / 0.7021 GB, free: 25.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003333/0.9206, allocations: 1.59 MB / 0.7036 GB, free: 24.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/0.9224, allocations: 1.655 MB / 0.7053 GB, free: 22.57 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.9224, allocations: 0 / 0.7053 GB, free: 22.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.269/1.191, allocations: 68.59 MB / 0.7722 GB, free: 133.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/1.192, allocations: 240.1 kB / 0.7725 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.387/4.579, allocations: 0 / 0.7725 GB, free: 133.2 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)