Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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) 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(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008888/0.0008889, allocations: 180.8 kB / 8.133 MB, free: 2.215 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.056/1.056, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0008147/0.0008146, allocations: 100.8 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09172/0.09257, allocations: 55.81 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.2683, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07634/0.3447, allocations: 78.39 MB / 465.4 MB, free: 8.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.3449, allocations: 74.31 kB / 465.5 MB, free: 8.344 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.01193/0.3568, allocations: 4.387 MB / 469.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.3569, allocations: 13.03 kB / 469.9 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.438e-05/0.3569, allocations: 23.72 kB / 469.9 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.3572, allocations: 226.7 kB / 470.1 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.3572, allocations: 8.719 kB / 470.1 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.3572, allocations: 12 kB / 470.1 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002569/0.3575, allocations: 132 kB / 470.2 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/0.3578, allocations: 186.8 kB / 470.4 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.3578, allocations: 7.969 kB / 470.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.3579, allocations: 4 kB / 470.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3579, allocations: 4 kB / 470.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009486/0.3588, allocations: 0.6217 MB / 471.1 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.3591, allocations: 114.7 kB / 471.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.3592, allocations: 73.42 kB / 471.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.3592, allocations: 7.938 kB / 471.3 MB, free: 2.422 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.3594, allocations: 141.1 kB / 471.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.553e-06/0.3594, allocations: 0 / 471.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001336/0.3608, allocations: 0.803 MB / 472.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.3608, allocations: 55.41 kB / 472.3 MB, free: 1.309 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3609, allocations: 161.8 kB / 472.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.361, allocations: 25.7 kB / 472.4 MB, free: 1.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.43e-05/0.3611, allocations: 130.3 kB / 472.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.141e-05/0.3611, allocations: 86.75 kB / 472.6 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.3611, allocations: 0 / 472.6 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3613, allocations: 334.7 kB / 473 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.3614, allocations: 72.33 kB / 473 MB, free: 496 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3615, allocations: 116.3 kB / 473.2 MB, free: 364 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.3617, allocations: 77.31 kB / 473.2 MB, free: 288 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3617, allocations: 0 / 473.2 MB, free: 288 kB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005885/0.3623, allocations: 292.4 kB / 473.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.3623, allocations: 4 kB / 473.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3624, allocations: 0 / 473.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.3626, allocations: 64.8 kB / 473.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.3628, allocations: 61.34 kB / 473.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004615/0.3633, allocations: 0.6186 MB / 474.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.3636, allocations: 44.03 kB / 474.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.3636, allocations: 14.11 kB / 474.3 MB, free: 15.16 MB / 362.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.0001214/0.3637, allocations: 117.6 kB / 474.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/0.3638, allocations: 23.72 kB / 474.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004408/0.3642, allocations: 254.3 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.3642, allocations: 4.812 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3642, allocations: 4 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3642, allocations: 0.5625 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008134/0.3651, allocations: 0.5878 MB / 475.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3651, allocations: 0 / 475.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.3653, allocations: 52 kB / 475.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.3655, allocations: 56.83 kB / 475.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.3655, allocations: 0 / 475.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004463/0.366, allocations: 0.6231 MB / 476 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.366, allocations: 4 kB / 476 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006338/0.3666, allocations: 438.5 kB / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008712/0.3675, allocations: 0.9174 MB / 477.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.862e-05/0.3676, allocations: 112.9 kB / 477.5 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.3676, allocations: 7.906 kB / 477.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.3679, allocations: 40.91 kB / 477.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.368, allocations: 39.92 kB / 477.6 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.368, allocations: 8 kB / 477.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.679e-05/0.3681, allocations: 119.3 kB / 477.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008429/0.369, allocations: 67.98 kB / 477.8 MB, free: 11.54 MB / 362.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.0001992/0.3692, allocations: 142.9 kB / 477.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004498/0.3696, allocations: 259.4 kB / 478.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3697, allocations: 4 kB / 478.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.3699, allocations: 115.8 kB / 478.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.3702, allocations: 34.34 kB / 478.3 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008691/0.3711, allocations: 0.489 MB / 478.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.3714, allocations: 0.7714 MB / 479.6 MB, free: 9.66 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3714, allocations: 0 / 479.6 MB, free: 9.66 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)