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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003132/0.003132, allocations: 177.8 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 221.4 MB / 229.3 MB, free: 3.074 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 111.3 kB / 280.1 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03981/0.03981, allocations: 8.843 MB / 339.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2011/0.241, allocations: 58.48 MB / 398.2 MB, free: 67.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.3324, allocations: 52.4 MB / 450.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2662/0.5986, allocations: 87.59 MB / 0.5256 GB, free: 5.488 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.5989, allocations: 72.97 kB / 0.5257 GB, free: 5.457 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.2097/0.8087, allocations: 76.09 MB / 0.6 GB, free: 440 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.8087, allocations: 12 kB / 0.6 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009766/0.8185, allocations: 1.664 MB / 0.6016 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005508/0.824, allocations: 2.008 MB / 0.6036 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.8243, allocations: 108 kB / 0.6037 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.8261, allocations: 203.9 kB / 0.6039 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01184/0.838, allocations: 6.718 MB / 0.6104 GB, free: 5.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.8568, allocations: 8.95 MB / 0.6192 GB, free: 12.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.857, allocations: 35.7 kB / 0.6192 GB, free: 12.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000511/0.8575, allocations: 12 kB / 0.6192 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001752/0.8592, allocations: 1.166 MB / 0.6203 GB, free: 11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2146/1.074, allocations: 31.92 MB / 0.6515 GB, free: 156.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/1.076, allocations: 1.806 MB / 0.6533 GB, free: 156.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/1.078, allocations: 1.401 MB / 0.6547 GB, free: 156.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008045/1.086, allocations: 8.255 MB / 0.6627 GB, free: 151.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/1.086, allocations: 54.53 kB / 0.6628 GB, free: 151.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=219): time 3.827e-06/1.086, allocations: 3.375 kB / 0.6628 GB, free: 151.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=255): time 0.01668/1.103, allocations: 9.736 MB / 0.6723 GB, free: 149.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/1.103, allocations: 75.47 kB / 0.6724 GB, free: 149.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002762/1.106, allocations: 2.199 MB / 0.6745 GB, free: 149.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/1.106, allocations: 25.7 kB / 0.6745 GB, free: 149.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009016/1.107, allocations: 2.356 MB / 0.6768 GB, free: 148.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000557/1.107, allocations: 0.8913 MB / 0.6777 GB, free: 147.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/1.107, allocations: 3.969 kB / 0.6777 GB, free: 147.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002746/1.108, allocations: 0.5843 MB / 0.6783 GB, free: 147.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002064/1.11, allocations: 1.721 MB / 0.68 GB, free: 147.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003737/1.114, allocations: 4.541 MB / 0.6844 GB, free: 143.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003486/1.117, allocations: 2.893 MB / 0.6872 GB, free: 143.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-05/1.117, allocations: 29.62 kB / 0.6872 GB, free: 143.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.009493/1.127, allocations: 6.181 MB / 0.6933 GB, free: 143 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/1.127, allocations: 3.688 kB / 0.6933 GB, free: 143 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/1.127, allocations: 97.38 kB / 0.6934 GB, free: 143 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/1.128, allocations: 0.5496 MB / 0.6939 GB, free: 142.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/1.132, allocations: 1.195 MB / 0.6951 GB, free: 142.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006772/1.139, allocations: 5.856 MB / 0.7008 GB, free: 139 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/1.144, allocations: 140.5 kB / 0.7009 GB, free: 139 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.145, allocations: 322.1 kB / 0.7012 GB, free: 139 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * 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],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (660): * Single equations (assignments): 654 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009499/1.146, allocations: 350.9 kB / 0.7016 GB, free: 138.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/1.147, allocations: 254.3 kB / 0.7018 GB, free: 138.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005515/1.152, allocations: 3.254 MB / 0.705 GB, free: 137.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001429/1.152, allocations: 27.38 kB / 0.705 GB, free: 137.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.153, allocations: 6.469 kB / 0.705 GB, free: 137.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.066e-05/1.153, allocations: 14.34 kB / 0.705 GB, free: 137.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01682/1.169, allocations: 9.557 MB / 0.7144 GB, free: 131.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.169, allocations: 8 kB / 0.7144 GB, free: 131.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/1.171, allocations: 327.9 kB / 0.7147 GB, free: 131 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/1.172, allocations: 0.5245 MB / 0.7152 GB, free: 130.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/1.172, allocations: 19.56 kB / 0.7152 GB, free: 130.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006654/1.179, allocations: 6.348 MB / 0.7214 GB, free: 124.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002545/1.181, allocations: 2.799 MB / 0.7242 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006411/1.188, allocations: 5.484 MB / 0.7295 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008027/1.196, allocations: 7.616 MB / 0.7369 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008178/1.197, allocations: 325.1 kB / 0.7373 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003698/1.197, allocations: 11.94 kB / 0.7373 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.198, allocations: 42.77 kB / 0.7373 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/1.199, allocations: 131.7 kB / 0.7374 GB, free: 109.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/1.199, allocations: 75.64 kB / 0.7375 GB, free: 109.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001992/1.201, allocations: 1.461 MB / 0.7389 GB, free: 107.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00535/1.206, allocations: 0.8003 MB / 0.7397 GB, free: 107 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,revolute.phi,revolute.w,engineTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 181 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005214/1.207, allocations: 158.8 kB / 0.7399 GB, free: 106.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006582/1.213, allocations: 4.445 MB / 0.7442 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/1.213, allocations: 4 kB / 0.7442 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002683/1.216, allocations: 1.766 MB / 0.7459 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/1.218, allocations: 221.4 kB / 0.7461 GB, free: 101 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/1.231, allocations: 7.083 MB / 0.7531 GB, free: 94.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00355/1.234, allocations: 3.268 MB / 0.7563 GB, free: 92.01 MB / 458.7 MB Notification: Performance of SimCode: time 1.623e-06/1.234, allocations: 0 / 0.7563 GB, free: 92.01 MB / 458.7 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/linux/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)