Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001194/0.001194, allocations: 196.5 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.139/1.139, allocations: 225.5 MB / 234.4 MB, free: 14.92 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009853/0.0009854, allocations: 98.69 kB / 286.4 MB, free: 12.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1007/0.1017, allocations: 56.88 MB / 343.2 MB, free: 3.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.2933, allocations: 51.45 MB / 394.7 MB, free: 33.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08186/0.3752, allocations: 80.02 MB / 474.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.3754, allocations: 72.91 kB / 474.8 MB, free: 1.027 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.01559/0.3911, allocations: 5.761 MB / 480.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3911, allocations: 12.56 kB / 480.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.3913, allocations: 39.7 kB / 480.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.3916, allocations: 250.5 kB / 480.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.3916, allocations: 4 kB / 480.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.3917, allocations: 12 kB / 480.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000279/0.3919, allocations: 124.7 kB / 481 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.3922, allocations: 171.5 kB / 481.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3923, allocations: 15.89 kB / 481.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.3923, allocations: 4 kB / 481.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3923, allocations: 4 kB / 481.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3934, allocations: 0.7312 MB / 481.9 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.3936, allocations: 101.7 kB / 482 MB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.3938, allocations: 57.89 kB / 482 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.3938, allocations: 4 kB / 482 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.3938, allocations: 30.56 kB / 482.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.422e-06/0.3938, allocations: 4 kB / 482.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001293/0.3951, allocations: 0.7229 MB / 482.8 MB, free: 8.754 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.3952, allocations: 56.25 kB / 482.9 MB, free: 8.688 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.3954, allocations: 171 kB / 483 MB, free: 8.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.3954, allocations: 25.7 kB / 483.1 MB, free: 8.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.3955, allocations: 132.2 kB / 483.2 MB, free: 8.348 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.082e-05/0.3955, allocations: 75 kB / 483.3 MB, free: 8.273 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.3956, allocations: 0 / 483.3 MB, free: 8.273 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3957, allocations: 330.8 kB / 483.6 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3958, allocations: 57.22 kB / 483.6 MB, free: 7.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.396, allocations: 99.36 kB / 483.7 MB, free: 7.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.3961, allocations: 51.98 kB / 483.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.3961, allocations: 0 / 483.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003967/0.3965, allocations: 235.6 kB / 484 MB, free: 7.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3965, allocations: 4 kB / 484 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3965, allocations: 4 kB / 484 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.3967, allocations: 52.91 kB / 484.1 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.3969, allocations: 43.91 kB / 484.1 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.3982, allocations: 1.433 MB / 485.5 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3985, allocations: 32.03 kB / 485.6 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.3985, allocations: 11.94 kB / 485.6 MB, free: 5.785 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 (25): * Single equations (assignments): 24 * 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 prepare postOptimizeDAE: time 0.0001241/0.3986, allocations: 116.5 kB / 485.7 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.3987, allocations: 16.47 kB / 485.7 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.782e-05/0.3987, allocations: 25.73 kB / 485.7 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3988, allocations: 4 kB / 485.7 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.3988, allocations: 0 / 485.7 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3988, allocations: 7.906 kB / 485.8 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007472/0.3995, allocations: 0.5382 MB / 486.3 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3995, allocations: 0 / 486.3 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.3998, allocations: 36.48 kB / 486.3 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001447/0.3999, allocations: 60.88 kB / 486.4 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.3999, allocations: 0 / 486.4 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.4012, allocations: 1.42 MB / 487.8 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.4012, allocations: 11.92 kB / 487.8 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005584/0.4018, allocations: 404.3 kB / 488.2 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007461/0.4025, allocations: 0.8654 MB / 489.1 MB, free: 2.047 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.74e-05/0.4026, allocations: 108.9 kB / 489.2 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.4027, allocations: 0 / 489.2 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.4029, allocations: 27.98 kB / 489.2 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.403, allocations: 23.95 kB / 489.2 MB, free: 1.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.403, allocations: 15.98 kB / 489.3 MB, free: 1.855 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001132/0.4031, allocations: 133.2 kB / 489.4 MB, free: 1.727 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009297/0.4041, allocations: 71.84 kB / 489.5 MB, free: 1.656 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0005577/0.4046, allocations: 287.2 kB / 489.7 MB, free: 1.445 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004571/0.4051, allocations: 269.5 kB / 490 MB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4051, allocations: 0 / 490 MB, free: 1.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.4054, allocations: 189.8 kB / 490.2 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.4057, allocations: 26.5 kB / 490.2 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009541/0.4066, allocations: 0.5103 MB / 490.7 MB, free: 424 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003873/0.407, allocations: 0.7713 MB / 491.5 MB, free: 15.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.407, allocations: 0 / 491.5 MB, free: 15.62 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat