Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.0009235/0.0009235, allocations: 185.6 kB / 8.138 MB, free: 2.223 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.091/1.091, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008526/0.0008527, allocations: 97.86 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08504/0.08592, allocations: 55.81 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.2614, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07631/0.3378, allocations: 78.29 MB / 465.3 MB, free: 8.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/0.338, allocations: 67.97 kB / 465.4 MB, free: 8.406 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.01142/0.3494, allocations: 4.208 MB / 469.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3495, allocations: 8 kB / 469.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.3496, allocations: 23.72 kB / 469.6 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3498, allocations: 222.7 kB / 469.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.3499, allocations: 8 kB / 469.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.3499, allocations: 19.91 kB / 469.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002647/0.3502, allocations: 132.8 kB / 470 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.3505, allocations: 181.4 kB / 470.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.3505, allocations: 4 kB / 470.2 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.3505, allocations: 3.984 kB / 470.2 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.3505, allocations: 4 kB / 470.2 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.3517, allocations: 0.729 MB / 470.9 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.352, allocations: 104.1 kB / 471 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.3521, allocations: 63.61 kB / 471.1 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.3521, allocations: 11.91 kB / 471.1 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.3521, allocations: 35.19 kB / 471.1 MB, free: 2.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.3522, allocations: 0 / 471.1 MB, free: 2.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001356/0.3535, allocations: 0.7555 MB / 471.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.3536, allocations: 59.34 kB / 471.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.3537, allocations: 149.9 kB / 472.1 MB, free: 1.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.3537, allocations: 29.7 kB / 472.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.3538, allocations: 128.3 kB / 472.2 MB, free: 1.297 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.3539, allocations: 74.91 kB / 472.3 MB, free: 1.223 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.3539, allocations: 3.984 kB / 472.3 MB, free: 1.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.354, allocations: 330.8 kB / 472.6 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.3541, allocations: 60 kB / 472.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.3543, allocations: 95.64 kB / 472.8 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.3544, allocations: 61.14 kB / 472.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3544, allocations: 0 / 472.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004085/0.3549, allocations: 250 kB / 473.1 MB, free: 420 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.3549, allocations: 4 kB / 473.1 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.3549, allocations: 7.906 kB / 473.1 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.3551, allocations: 60.81 kB / 473.1 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.3553, allocations: 39.92 kB / 473.2 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000494/0.3558, allocations: 0.63 MB / 473.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.356, allocations: 28.05 kB / 473.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.356, allocations: 8.562 kB / 473.8 MB, free: 15.61 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.3561, allocations: 118.5 kB / 474 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.572e-05/0.3562, allocations: 19.72 kB / 474 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.3567, allocations: 245.9 kB / 474.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3567, allocations: 7.906 kB / 474.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3567, allocations: 0 / 474.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3567, allocations: 4.562 kB / 474.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.3574, allocations: 0.5322 MB / 474.8 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3574, allocations: 12.03 kB / 474.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.3576, allocations: 31.97 kB / 474.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001489/0.3578, allocations: 56.83 kB / 474.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.3578, allocations: 7.906 kB / 474.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004372/0.3582, allocations: 0.6234 MB / 475.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3583, allocations: 4 kB / 475.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005058/0.3588, allocations: 423.6 kB / 475.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007015/0.3595, allocations: 0.8551 MB / 476.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.93e-05/0.3596, allocations: 112.8 kB / 476.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.3596, allocations: 0 / 476.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.3598, allocations: 27.98 kB / 476.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.3599, allocations: 27.95 kB / 476.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.3599, allocations: 4 kB / 476.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.426e-05/0.36, allocations: 123.2 kB / 477.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008653/0.3609, allocations: 60.66 kB / 477.1 MB, free: 12.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002277/0.3612, allocations: 139.1 kB / 477.3 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.3616, allocations: 201.8 kB / 477.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3616, allocations: 7.938 kB / 477.5 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.3618, allocations: 87.78 kB / 477.5 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.3621, allocations: 38.48 kB / 477.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009001/0.363, allocations: 477.5 kB / 478 MB, free: 11.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.3634, allocations: 0.7805 MB / 478.8 MB, free: 10.35 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3634, allocations: 0 / 478.8 MB, free: 10.35 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)