Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 187.7 kB / 8.483 MB, free: 1.789 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.215/1.215, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 91.38 kB / 262.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1023/0.1033, allocations: 52.99 MB / 315.1 MB, free: 8.586 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.3396, allocations: 47.55 MB / 362.6 MB, free: 45.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09076/0.4304, allocations: 77.42 MB / 440 MB, free: 8.512 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.4307, allocations: 67.97 kB / 440.1 MB, free: 8.445 MB / 330.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.01263/0.4433, allocations: 4.134 MB / 444.2 MB, free: 4.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.4434, allocations: 8 kB / 444.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.4434, allocations: 23.72 kB / 444.3 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.4437, allocations: 224.9 kB / 444.5 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.4438, allocations: 8 kB / 444.5 MB, free: 4.023 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.4438, allocations: 15.91 kB / 444.5 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002738/0.4441, allocations: 132.8 kB / 444.6 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.4444, allocations: 180.9 kB / 444.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.4444, allocations: 0 / 444.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.4445, allocations: 4 kB / 444.8 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.4445, allocations: 4 kB / 444.8 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.4458, allocations: 0.7329 MB / 445.6 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.4461, allocations: 97.7 kB / 445.7 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.4462, allocations: 68.75 kB / 445.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.4462, allocations: 0 / 445.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.4463, allocations: 42.5 kB / 445.8 MB, free: 2.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 3.777e-06/0.4463, allocations: 0 / 445.8 MB, free: 2.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001623/0.4479, allocations: 0.7613 MB / 446.5 MB, free: 1.809 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.448, allocations: 55.39 kB / 446.6 MB, free: 1.742 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.4481, allocations: 158.4 kB / 446.7 MB, free: 1.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.4482, allocations: 29.7 kB / 446.8 MB, free: 1.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.83e-05/0.4482, allocations: 128.3 kB / 446.9 MB, free: 1.418 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.323e-05/0.4483, allocations: 74.91 kB / 447 MB, free: 1.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.4483, allocations: 0 / 447 MB, free: 1.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4485, allocations: 330.8 kB / 447.3 MB, free: 1.012 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.4486, allocations: 60.53 kB / 447.3 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.4487, allocations: 95.64 kB / 447.4 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.4489, allocations: 65.84 kB / 447.5 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.4489, allocations: 0 / 447.5 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004589/0.4494, allocations: 248.7 kB / 447.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4494, allocations: 10.88 kB / 447.8 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.4494, allocations: 4 kB / 447.8 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.4497, allocations: 56.89 kB / 447.8 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.4499, allocations: 43.97 kB / 447.9 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/0.4506, allocations: 0.6194 MB / 448.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.4509, allocations: 32.03 kB / 448.5 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.4509, allocations: 12 kB / 448.5 MB, free: 15.73 MB / 346.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.0001952/0.4511, allocations: 112.7 kB / 448.6 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.4512, allocations: 23.72 kB / 448.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006193/0.4518, allocations: 241.2 kB / 448.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.4519, allocations: 4 kB / 448.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4519, allocations: 0 / 448.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.4519, allocations: 4.734 kB / 448.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008598/0.4528, allocations: 0.545 MB / 449.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4528, allocations: 4 kB / 449.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.453, allocations: 27.98 kB / 449.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001822/0.4532, allocations: 68.91 kB / 449.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.4532, allocations: 3.906 kB / 449.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005614/0.4538, allocations: 0.6225 MB / 450.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4538, allocations: 0 / 450.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000623/0.4544, allocations: 418.8 kB / 450.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007527/0.4552, allocations: 0.8658 MB / 451.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.4553, allocations: 113.9 kB / 451.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.4554, allocations: 4 kB / 451.6 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.4556, allocations: 23.97 kB / 451.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.4557, allocations: 31.95 kB / 451.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.4557, allocations: 4 kB / 451.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.776e-05/0.4558, allocations: 123.8 kB / 451.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009429/0.4568, allocations: 59.98 kB / 451.8 MB, free: 12.25 MB / 346.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.0002148/0.457, allocations: 119.2 kB / 451.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.4574, allocations: 200.2 kB / 452.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4574, allocations: 4 kB / 452.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.4577, allocations: 95.77 kB / 452.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.458, allocations: 26.39 kB / 452.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.4591, allocations: 499.7 kB / 452.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005027/0.4596, allocations: 0.7649 MB / 453.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.824e-06/0.4596, allocations: 4 kB / 453.5 MB, free: 10.5 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)