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/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.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"}) [: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.003202/0.003202, allocations: 183.2 kB / 7.461 MB, free: 2.449 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.191/1.191, allocations: 221.4 MB / 229.3 MB, free: 3.027 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.0009316/0.0009316, allocations: 101.7 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.03842/0.03842, allocations: 8.848 MB / 339.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1794/0.2179, allocations: 58.49 MB / 398.2 MB, free: 67.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09575/0.3137, allocations: 52.4 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2901/0.6039, allocations: 88.53 MB / 0.5265 GB, free: 4.855 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.6042, allocations: 81.83 kB / 0.5266 GB, free: 4.816 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: 1124 * Number of variables: 1124 Notification: Performance of Generate backend data structure: time 0.1643/0.7684, allocations: 61.51 MB / 0.5867 GB, free: 14.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.7685, allocations: 12 kB / 0.5867 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009217/0.7777, allocations: 1.587 MB / 0.5882 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00472/0.7825, allocations: 1.725 MB / 0.5899 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.7827, allocations: 96 kB / 0.59 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.7847, allocations: 163.9 kB / 0.5902 GB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01067/0.7954, allocations: 5.438 MB / 0.5955 GB, free: 5.227 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/0.812, allocations: 7.137 MB / 0.6024 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001939/0.8122, allocations: 19.78 kB / 0.6025 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001436/0.8136, allocations: 12 kB / 0.6025 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001759/0.8154, allocations: 0.9113 MB / 0.6034 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.8583, allocations: 23.97 MB / 0.6268 GB, free: 4.242 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/0.8608, allocations: 1.174 MB / 0.6279 GB, free: 3.062 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.8626, allocations: 0.852 MB / 0.6287 GB, free: 2.211 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00659/0.8692, allocations: 3.795 MB / 0.6324 GB, free: 14.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.8693, allocations: 47.56 kB / 0.6325 GB, free: 14.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 3.727e-06/0.8693, allocations: 0 / 0.6325 GB, free: 14.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01163/0.8809, allocations: 5.64 MB / 0.638 GB, free: 8.297 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.881, allocations: 64.72 kB / 0.6381 GB, free: 8.223 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.884, allocations: 1.832 MB / 0.6398 GB, free: 6.391 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.323e-05/0.8841, allocations: 29.7 kB / 0.6399 GB, free: 6.355 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009962/0.8851, allocations: 1.987 MB / 0.6418 GB, free: 4.332 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004403/0.8855, allocations: 0.5742 MB / 0.6424 GB, free: 3.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.8856, allocations: 3.938 kB / 0.6424 GB, free: 3.746 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003345/0.886, allocations: 0.5113 MB / 0.6429 GB, free: 3.223 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.8879, allocations: 1.265 MB / 0.6441 GB, free: 1.953 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1987/1.087, allocations: 3.419 MB / 0.6475 GB, free: 105.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/1.09, allocations: 2.145 MB / 0.6496 GB, free: 105.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.997e-05/1.09, allocations: 22.78 kB / 0.6496 GB, free: 105.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=526) (initialization): time 0.007438/1.098, allocations: 4.51 MB / 0.654 GB, free: 105.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/1.098, allocations: 7.984 kB / 0.654 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.419e-05/1.098, allocations: 76.88 kB / 0.6541 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008588/1.099, allocations: 370.5 kB / 0.6544 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/1.102, allocations: 0.8659 MB / 0.6553 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004701/1.106, allocations: 4.449 MB / 0.6596 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/1.109, allocations: 96.3 kB / 0.6597 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004263/1.11, allocations: 241.7 kB / 0.6599 GB, free: 102.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 348 * 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 (479): * Single equations (assignments): 473 * 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 {(5,56.0%) 14,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000514/1.11, allocations: 296.1 kB / 0.6602 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/1.111, allocations: 188.4 kB / 0.6604 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002886/1.113, allocations: 2.005 MB / 0.6623 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/1.114, allocations: 25.27 kB / 0.6624 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/1.114, allocations: 6.75 kB / 0.6624 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/1.114, allocations: 3.891 kB / 0.6624 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00813/1.122, allocations: 4.99 MB / 0.6673 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/1.122, allocations: 0 / 0.6673 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008911/1.123, allocations: 201.4 kB / 0.6674 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005772/1.123, allocations: 221.3 kB / 0.6677 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.609e-05/1.123, allocations: 10.81 kB / 0.6677 GB, free: 101.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/1.127, allocations: 3.686 MB / 0.6713 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.127, allocations: 0 / 0.6713 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004015/1.131, allocations: 3.146 MB / 0.6743 GB, free: 98.94 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00493/1.136, allocations: 4.601 MB / 0.6788 GB, free: 98.08 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007211/1.137, allocations: 265.6 kB / 0.6791 GB, free: 97.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/1.137, allocations: 15.19 kB / 0.6791 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008062/1.138, allocations: 18.83 kB / 0.6791 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/1.138, allocations: 67.78 kB / 0.6792 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/1.138, allocations: 45.84 kB / 0.6792 GB, free: 97.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002013/1.14, allocations: 1.236 MB / 0.6804 GB, free: 97.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004096/1.144, allocations: 0.5866 MB / 0.681 GB, free: 97.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (prismatic.s,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 (118): * Single equations (assignments): 112 * 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 {(4,81.2%) 13,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003597/1.144, allocations: 149.3 kB / 0.6811 GB, free: 97.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004394/1.149, allocations: 3.2 MB / 0.6843 GB, free: 97.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/1.149, allocations: 2.203 kB / 0.6843 GB, free: 97.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/1.15, allocations: 1.128 MB / 0.6854 GB, free: 97.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/1.152, allocations: 188.7 kB / 0.6856 GB, free: 97.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/1.163, allocations: 5.216 MB / 0.6906 GB, free: 95.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003829/1.166, allocations: 2.781 MB / 0.6934 GB, free: 95.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.112e-06/1.166, allocations: 0 / 0.6934 GB, free: 95.09 MB / 458.7 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/linux/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)