Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.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.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel",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.002509/0.002509, allocations: 184.5 kB / 7.462 MB, free: 2.5 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.131/1.131, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.0008984/0.0008983, allocations: 93.56 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03799/0.03799, allocations: 8.838 MB / 339.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1765/0.2146, allocations: 58.49 MB / 398.2 MB, free: 67.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08028/0.2949, allocations: 52.39 MB / 450.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.249/0.5439, allocations: 89.83 MB / 0.5278 GB, free: 3.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.5442, allocations: 75.22 kB / 0.5279 GB, free: 3.742 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: 1163 * Number of variables: 1163 Notification: Performance of Generate backend data structure: time 0.1717/0.7159, allocations: 65.11 MB / 0.5914 GB, free: 9.453 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.7159, allocations: 11.94 kB / 0.5914 GB, free: 9.441 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009179/0.7251, allocations: 1.602 MB / 0.593 GB, free: 7.832 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005059/0.7302, allocations: 1.77 MB / 0.5947 GB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.7304, allocations: 92 kB / 0.5948 GB, free: 5.926 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001342/0.7317, allocations: 171.9 kB / 0.595 GB, free: 5.754 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009423/0.7412, allocations: 5.665 MB / 0.6005 GB, free: 84 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/0.7564, allocations: 7.427 MB / 0.6078 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001502/0.7566, allocations: 23.81 kB / 0.6078 GB, free: 8.242 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00121/0.7578, allocations: 8 kB / 0.6078 GB, free: 8.234 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001543/0.7594, allocations: 0.9505 MB / 0.6087 GB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03807/0.7975, allocations: 25.31 MB / 0.6335 GB, free: 13.35 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.7998, allocations: 1.281 MB / 0.6347 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.8013, allocations: 0.9159 MB / 0.6356 GB, free: 11.15 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008069/0.8094, allocations: 4.484 MB / 0.64 GB, free: 6.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.8095, allocations: 47.88 kB / 0.64 GB, free: 6.172 MB / 458.7 MB Notification: Performance of pre-optimization done (n=154): time 5.501e-06/0.8095, allocations: 0 / 0.64 GB, free: 6.172 MB / 458.7 MB Notification: Performance of matching and sorting (n=168): time 0.01292/0.8225, allocations: 5.898 MB / 0.6458 GB, free: 188 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.8226, allocations: 68.72 kB / 0.6458 GB, free: 104 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1421/0.9646, allocations: 1.897 MB / 0.6477 GB, free: 177.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000273/0.965, allocations: 25.7 kB / 0.6477 GB, free: 177.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007902/0.9658, allocations: 2.059 MB / 0.6497 GB, free: 176.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/0.9662, allocations: 0.6006 MB / 0.6503 GB, free: 176.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.9664, allocations: 0 / 0.6503 GB, free: 176.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.9666, allocations: 0.5208 MB / 0.6508 GB, free: 176.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.9682, allocations: 1.312 MB / 0.6521 GB, free: 176.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/0.9706, allocations: 3.576 MB / 0.6556 GB, free: 173.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/0.9733, allocations: 2.232 MB / 0.6578 GB, free: 173.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.029e-05/0.9733, allocations: 26.56 kB / 0.6578 GB, free: 173.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=553) (initialization): time 0.006357/0.9797, allocations: 4.636 MB / 0.6623 GB, free: 172.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.9797, allocations: 3.938 kB / 0.6623 GB, free: 172.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-05/0.9798, allocations: 81.28 kB / 0.6624 GB, free: 172.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006391/0.9804, allocations: 301.5 kB / 0.6627 GB, free: 172.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00279/0.9832, allocations: 0.9241 MB / 0.6636 GB, free: 172.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.9856, allocations: 2.485 MB / 0.666 GB, free: 171.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002629/0.9883, allocations: 96.22 kB / 0.6661 GB, free: 171.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003631/0.9886, allocations: 259.1 kB / 0.6664 GB, free: 171.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 366 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (514): * Single equations (assignments): 508 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004676/0.9891, allocations: 308.5 kB / 0.6667 GB, free: 171.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.9894, allocations: 196.5 kB / 0.6669 GB, free: 171.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00288/0.9923, allocations: 2.044 MB / 0.6689 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/0.9924, allocations: 17.94 kB / 0.6689 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.9924, allocations: 3.281 kB / 0.6689 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.9924, allocations: 7.266 kB / 0.6689 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008159/1.001, allocations: 5.213 MB / 0.674 GB, free: 170.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/1.001, allocations: 3.969 kB / 0.674 GB, free: 170.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/1.002, allocations: 230.8 kB / 0.6742 GB, free: 170.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005079/1.002, allocations: 178 kB / 0.6744 GB, free: 170.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/1.002, allocations: 15.16 kB / 0.6744 GB, free: 170.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/1.004, allocations: 2.088 MB / 0.6764 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.004, allocations: 3.5 kB / 0.6764 GB, free: 168.8 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003799/1.008, allocations: 3.349 MB / 0.6797 GB, free: 168.2 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004986/1.013, allocations: 4.874 MB / 0.6845 GB, free: 165.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006234/1.014, allocations: 281.7 kB / 0.6847 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004521/1.014, allocations: 3.906 kB / 0.6847 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009616/1.015, allocations: 24.72 kB / 0.6847 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/1.015, allocations: 76.56 kB / 0.6848 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/1.015, allocations: 48.56 kB / 0.6849 GB, free: 165.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002043/1.017, allocations: 1.285 MB / 0.6861 GB, free: 165.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003792/1.021, allocations: 0.6096 MB / 0.6867 GB, free: 165.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 128 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000455/1.022, allocations: 171.5 kB / 0.6869 GB, free: 164.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004406/1.026, allocations: 3.235 MB / 0.69 GB, free: 163.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.026, allocations: 3.188 kB / 0.69 GB, free: 163.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/1.028, allocations: 1.113 MB / 0.6911 GB, free: 163.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/1.029, allocations: 202.6 kB / 0.6913 GB, free: 163.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/1.041, allocations: 5.511 MB / 0.6967 GB, free: 160.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003611/1.044, allocations: 2.861 MB / 0.6995 GB, free: 158.5 MB / 458.7 MB Notification: Performance of SimCode: time 8.72e-07/1.044, allocations: 0 / 0.6995 GB, free: 158.5 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestDryFrictionWheel.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)