Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.001026/0.001026, allocations: 175.2 kB / 8.475 MB, free: 1.863 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.21/1.21, allocations: 205.2 MB / 214.1 MB, free: 5.148 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.0009294/0.0009296, allocations: 86.27 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1935/0.1945, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.2765, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2769/0.5534, allocations: 77.51 MB / 440.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.5537, allocations: 70.23 kB / 440.2 MB, free: 10.66 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.01269/0.5664, allocations: 4.305 MB / 444.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.5665, allocations: 8.656 kB / 444.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.5666, allocations: 23.28 kB / 444.5 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.5669, allocations: 227.1 kB / 444.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.5669, allocations: 7.719 kB / 444.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.567, allocations: 15.34 kB / 444.8 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002607/0.5672, allocations: 137.2 kB / 444.9 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.5675, allocations: 177.4 kB / 445.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.5675, allocations: 4.484 kB / 445.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.5676, allocations: 0 / 445.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.5676, allocations: 8.484 kB / 445.1 MB, free: 9.676 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.5687, allocations: 0.6133 MB / 445.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.5689, allocations: 123.2 kB / 445.8 MB, free: 9.305 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.5691, allocations: 76.98 kB / 445.9 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.277e-05/0.5691, allocations: 3.875 kB / 445.9 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.5694, allocations: 135.4 kB / 446 MB, free: 9.242 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.5694, allocations: 0 / 446 MB, free: 9.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001374/0.5708, allocations: 0.8166 MB / 446.9 MB, free: 8.738 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.014e-05/0.5708, allocations: 56.09 kB / 446.9 MB, free: 8.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.5709, allocations: 153.3 kB / 447.1 MB, free: 8.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.571, allocations: 32.47 kB / 447.1 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.571, allocations: 115.8 kB / 447.2 MB, free: 8.441 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.5711, allocations: 95.16 kB / 447.3 MB, free: 8.379 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.5711, allocations: 3.844 kB / 447.3 MB, free: 8.379 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.5712, allocations: 330.1 kB / 447.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.5713, allocations: 75.17 kB / 447.7 MB, free: 8.066 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.5715, allocations: 111.1 kB / 447.8 MB, free: 8.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.5716, allocations: 73.02 kB / 447.9 MB, free: 8.027 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.5716, allocations: 4.562 kB / 447.9 MB, free: 8.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005271/0.5722, allocations: 283.9 kB / 448.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.5722, allocations: 4.5 kB / 448.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.5722, allocations: 7.781 kB / 448.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.5724, allocations: 60.03 kB / 448.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.5727, allocations: 62.06 kB / 448.3 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003968/0.5731, allocations: 0.6233 MB / 448.9 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.5734, allocations: 40.52 kB / 449 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.5734, allocations: 20.11 kB / 449 MB, free: 7.406 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.5736, allocations: 115.1 kB / 449.1 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.5736, allocations: 27.25 kB / 449.1 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004576/0.5741, allocations: 245.4 kB / 449.4 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5741, allocations: 4.297 kB / 449.4 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5741, allocations: 4 kB / 449.4 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.5741, allocations: 1.406 kB / 449.4 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008461/0.575, allocations: 0.5838 MB / 450 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.575, allocations: 3.875 kB / 450 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.5752, allocations: 51.19 kB / 450 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.5754, allocations: 61.48 kB / 450.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.5754, allocations: 9.156 kB / 450.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003482/0.5758, allocations: 0.6169 MB / 450.7 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5758, allocations: 0 / 450.7 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005729/0.5764, allocations: 444.2 kB / 451.1 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007204/0.5771, allocations: 0.9192 MB / 452 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.5772, allocations: 115 kB / 452.2 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.5773, allocations: 0 / 452.2 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.5776, allocations: 43.23 kB / 452.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.802e-05/0.5777, allocations: 37.72 kB / 452.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.5777, allocations: 11.38 kB / 452.2 MB, free: 5.449 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.958e-05/0.5778, allocations: 124.9 kB / 452.4 MB, free: 5.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009694/0.5788, allocations: 65.97 kB / 452.4 MB, free: 5.359 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002313/0.579, allocations: 126.1 kB / 452.6 MB, free: 5.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.5795, allocations: 264.9 kB / 452.8 MB, free: 5.172 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5795, allocations: 8.062 kB / 452.8 MB, free: 5.164 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.5798, allocations: 123 kB / 452.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.5801, allocations: 20.19 kB / 453 MB, free: 5.141 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008538/0.581, allocations: 497.6 kB / 453.5 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/0.5813, allocations: 0.7721 MB / 454.2 MB, free: 20.06 MB / 330.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5813, allocations: 0 / 454.2 MB, free: 20.06 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)