Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001508/0.001508, allocations: 174.9 kB / 8.473 MB, free: 1.875 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.243/1.243, allocations: 205.2 MB / 214.1 MB, free: 5.074 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.0008861/0.000886, allocations: 91.27 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1776/0.1785, allocations: 52.96 MB / 315 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.2498, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2488/0.4986, allocations: 79.65 MB / 442.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.4988, allocations: 68.75 kB / 442.3 MB, free: 10.73 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.021/0.5198, allocations: 7.156 MB / 449.5 MB, free: 8.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.5199, allocations: 11.53 kB / 449.5 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.5201, allocations: 42.66 kB / 449.6 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.5205, allocations: 290.7 kB / 449.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.5205, allocations: 15.28 kB / 449.9 MB, free: 8.578 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.603e-05/0.5206, allocations: 25.88 kB / 449.9 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000648/0.5213, allocations: 353.3 kB / 450.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.5219, allocations: 342.9 kB / 450.6 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.5219, allocations: 3.719 kB / 450.6 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.522, allocations: 0 / 450.6 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.522, allocations: 11.69 kB / 450.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002418/0.5244, allocations: 1.228 MB / 451.8 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.5248, allocations: 250 kB / 452 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.5251, allocations: 210.1 kB / 452.2 MB, free: 7.703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.447e-05/0.5252, allocations: 7.031 kB / 452.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.5252, allocations: 42.09 kB / 452.3 MB, free: 7.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.455e-06/0.5252, allocations: 0 / 452.3 MB, free: 7.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.00316/0.5284, allocations: 1.497 MB / 453.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.786e-05/0.5284, allocations: 62.84 kB / 453.9 MB, free: 6.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.5285, allocations: 189.6 kB / 454 MB, free: 6.762 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.5286, allocations: 36.91 kB / 454.1 MB, free: 6.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.5286, allocations: 144.5 kB / 454.2 MB, free: 6.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.584e-05/0.5287, allocations: 165.9 kB / 454.4 MB, free: 6.484 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.5288, allocations: 3.938 kB / 454.4 MB, free: 6.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.611e-05/0.5288, allocations: 341.4 kB / 454.7 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.5291, allocations: 178.6 kB / 454.9 MB, free: 6.148 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.5294, allocations: 248 kB / 455.1 MB, free: 6.074 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.5298, allocations: 146 kB / 455.3 MB, free: 6.055 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5298, allocations: 0 / 455.3 MB, free: 6.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001514/0.5313, allocations: 0.6625 MB / 455.9 MB, free: 5.887 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.5313, allocations: 9.469 kB / 455.9 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.5314, allocations: 3.844 kB / 456 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008387/0.5322, allocations: 422.9 kB / 456.4 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.5325, allocations: 77.38 kB / 456.4 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.5347, allocations: 3.362 MB / 459.8 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005719/0.5352, allocations: 100.1 kB / 459.9 MB, free: 2.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.61e-05/0.5353, allocations: 25.53 kB / 459.9 MB, free: 2.684 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.000172/0.5355, allocations: 121 kB / 460 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.5356, allocations: 34.69 kB / 460.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.5372, allocations: 0.6809 MB / 460.8 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5372, allocations: 5.406 kB / 460.8 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.5372, allocations: 0 / 460.8 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.5372, allocations: 5.25 kB / 460.8 MB, free: 2.324 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.5394, allocations: 1.07 MB / 461.8 MB, free: 17.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5394, allocations: 0 / 461.8 MB, free: 17.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.5397, allocations: 67.59 kB / 461.9 MB, free: 17.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000894/0.5406, allocations: 411.2 kB / 462.3 MB, free: 17.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.888e-05/0.5407, allocations: 14.88 kB / 462.3 MB, free: 17.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/0.5439, allocations: 3.316 MB / 465.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.544, allocations: 1.375 kB / 465.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001519/0.5455, allocations: 0.8736 MB / 466.5 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003041/0.5485, allocations: 1.922 MB / 468.4 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.5488, allocations: 157.7 kB / 468.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.5489, allocations: 11.94 kB / 468.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.5495, allocations: 107.9 kB / 468.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.5497, allocations: 101 kB / 468.8 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-05/0.5498, allocations: 24.31 kB / 468.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001506/0.5499, allocations: 154.7 kB / 469 MB, free: 13.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001252/0.5512, allocations: 115.5 kB / 469.1 MB, free: 13.42 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003247/0.5515, allocations: 133.5 kB / 469.2 MB, free: 13.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.5529, allocations: 0.727 MB / 469.9 MB, free: 13.01 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5529, allocations: 5.031 kB / 470 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007797/0.5537, allocations: 469.7 kB / 470.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004653/0.5542, allocations: 42.89 kB / 470.5 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.5562, allocations: 0.7749 MB / 471.2 MB, free: 12.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005437/0.5567, allocations: 0.847 MB / 472.1 MB, free: 11.55 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5567, allocations: 4 kB / 472.1 MB, free: 11.55 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)