Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 176.6 kB / 8.475 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.25/1.25, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008406/0.0008406, allocations: 82.84 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1732/0.1741, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07976/0.2539, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.4849, allocations: 81.47 MB / 444.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.4852, allocations: 71.59 kB / 444.2 MB, free: 10.64 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.03161/0.5168, allocations: 12.21 MB / 456.4 MB, free: 6.527 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/0.5169, allocations: 11.64 kB / 456.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004132/0.5173, allocations: 61.7 kB / 456.5 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.5178, allocations: 339.1 kB / 456.8 MB, free: 6.219 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.5179, allocations: 80.08 kB / 456.9 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.5181, allocations: 27.12 kB / 456.9 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009425/0.519, allocations: 0.5247 MB / 457.4 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/0.5198, allocations: 461.1 kB / 457.9 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.5199, allocations: 13.12 kB / 457.9 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/0.5199, allocations: 0 / 457.9 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.5199, allocations: 10 kB / 457.9 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.5223, allocations: 1.088 MB / 459 MB, free: 5.359 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.5229, allocations: 364.3 kB / 459.3 MB, free: 5.312 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.5233, allocations: 271.9 kB / 459.6 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.876e-05/0.5234, allocations: 10.47 kB / 459.6 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.5234, allocations: 37.62 kB / 459.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 2.595e-06/0.5234, allocations: 1.312 kB / 459.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.004265/0.5277, allocations: 1.853 MB / 461.5 MB, free: 4.473 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.5277, allocations: 88.45 kB / 461.6 MB, free: 4.375 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.5281, allocations: 221 kB / 461.8 MB, free: 4.258 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.367e-05/0.5281, allocations: 35.78 kB / 461.8 MB, free: 4.223 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.5282, allocations: 139.7 kB / 462 MB, free: 4.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.5284, allocations: 225.8 kB / 462.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.5284, allocations: 0 / 462.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.734e-05/0.5285, allocations: 356.1 kB / 462.5 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.529, allocations: 227.6 kB / 462.8 MB, free: 3.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004074/0.5294, allocations: 288.3 kB / 463 MB, free: 3.539 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.5299, allocations: 216.7 kB / 463.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.5299, allocations: 0 / 463.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001827/0.5318, allocations: 0.7485 MB / 464 MB, free: 3.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.5318, allocations: 4.719 kB / 464 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/0.5319, allocations: 5.5 kB / 464 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.5331, allocations: 413.2 kB / 464.4 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.5335, allocations: 88.09 kB / 464.5 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.5349, allocations: 1.078 MB / 465.6 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005891/0.5355, allocations: 81.58 kB / 465.7 MB, free: 2.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.999e-05/0.5356, allocations: 28.27 kB / 465.7 MB, free: 2.629 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002292/0.5359, allocations: 118.8 kB / 465.8 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.536, allocations: 38.69 kB / 465.8 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.5376, allocations: 0.7709 MB / 466.6 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.5376, allocations: 6.406 kB / 466.6 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5377, allocations: 5.125 kB / 466.6 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.5377, allocations: 3.984 kB / 466.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.5406, allocations: 1.546 MB / 468.2 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5406, allocations: 5.594 kB / 468.2 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004394/0.5411, allocations: 87.28 kB / 468.3 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009537/0.542, allocations: 392.7 kB / 468.6 MB, free: 1.543 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.712e-05/0.5421, allocations: 16.44 kB / 468.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.5433, allocations: 1.02 MB / 469.7 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5433, allocations: 1.156 kB / 469.7 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002148/0.5454, allocations: 1.165 MB / 470.8 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002502/0.548, allocations: 1.843 MB / 472.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.5483, allocations: 179.6 kB / 472.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.5484, allocations: 12.09 kB / 472.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005415/0.549, allocations: 72.5 kB / 472.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.5492, allocations: 97.02 kB / 473 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.586e-05/0.5493, allocations: 32.66 kB / 473.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001919/0.5495, allocations: 179 kB / 473.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001229/0.5507, allocations: 127.3 kB / 473.4 MB, free: 15.58 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003549/0.5511, allocations: 141.2 kB / 473.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.5522, allocations: 0.611 MB / 474.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5523, allocations: 3.938 kB / 474.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.5529, allocations: 325.3 kB / 474.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.5533, allocations: 41.03 kB / 474.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.5551, allocations: 0.7356 MB / 475.2 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006195/0.5558, allocations: 0.879 MB / 476.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5558, allocations: 0 / 476.1 MB, free: 13.6 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)