Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001204/0.001204, allocations: 204.1 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008714/0.0008714, allocations: 91.33 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09961/0.1005, allocations: 56.89 MB / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.1886, allocations: 51.47 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.4027, allocations: 80.07 MB / 474.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.403, allocations: 77.92 kB / 474.8 MB, free: 12.11 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.01426/0.4172, allocations: 5.931 MB / 480.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.4173, allocations: 8 kB / 480.8 MB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.4175, allocations: 35.72 kB / 480.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.4178, allocations: 246 kB / 481.1 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.4178, allocations: 4 kB / 481.1 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.4178, allocations: 12 kB / 481.1 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002363/0.4181, allocations: 134.6 kB / 481.2 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.4183, allocations: 177.5 kB / 481.4 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.4184, allocations: 3.906 kB / 481.4 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.4184, allocations: 4 kB / 481.4 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4184, allocations: 4 kB / 481.4 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007623/0.4192, allocations: 0.614 MB / 482 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.4194, allocations: 118.3 kB / 482.1 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.4195, allocations: 78.03 kB / 482.2 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.4196, allocations: 3.984 kB / 482.2 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.4197, allocations: 128.5 kB / 482.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 2.685e-06/0.4197, allocations: 0 / 482.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.001142/0.4209, allocations: 0.7966 MB / 483.1 MB, free: 6.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.994e-05/0.4209, allocations: 51.41 kB / 483.2 MB, free: 5.949 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.4211, allocations: 172.5 kB / 483.3 MB, free: 5.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.4211, allocations: 25.7 kB / 483.4 MB, free: 5.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.4212, allocations: 123.1 kB / 483.5 MB, free: 5.652 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.876e-05/0.4212, allocations: 85.19 kB / 483.6 MB, free: 5.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.4212, allocations: 0 / 483.6 MB, free: 5.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.4213, allocations: 332.2 kB / 483.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.4214, allocations: 69.31 kB / 484 MB, free: 5.215 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.4216, allocations: 109.2 kB / 484.1 MB, free: 5.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.4217, allocations: 69.91 kB / 484.1 MB, free: 5.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4217, allocations: 4 kB / 484.1 MB, free: 5.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004787/0.4222, allocations: 285.9 kB / 484.4 MB, free: 4.855 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4222, allocations: 6.031 kB / 484.4 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4222, allocations: 4 kB / 484.4 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.4224, allocations: 61.95 kB / 484.5 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.4226, allocations: 51.95 kB / 484.5 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009659/0.4236, allocations: 1.435 MB / 486 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.4239, allocations: 40.03 kB / 486 MB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.4239, allocations: 11.44 kB / 486 MB, free: 3.266 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: 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 (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001099/0.4241, allocations: 120.2 kB / 486.1 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.4241, allocations: 23.72 kB / 486.2 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.4242, allocations: 20.41 kB / 486.2 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4242, allocations: 4 kB / 486.2 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4242, allocations: 2.25 kB / 486.2 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4242, allocations: 3.984 kB / 486.2 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000717/0.4249, allocations: 0.5865 MB / 486.8 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4249, allocations: 0 / 486.8 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.4252, allocations: 51.45 kB / 486.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.4253, allocations: 53.33 kB / 486.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.4253, allocations: 7.562 kB / 486.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009171/0.4263, allocations: 1.426 MB / 488.3 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4263, allocations: 3.938 kB / 488.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005489/0.4268, allocations: 422.3 kB / 488.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007781/0.4276, allocations: 0.8913 MB / 489.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.4277, allocations: 120.2 kB / 489.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.4278, allocations: 0 / 489.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.4281, allocations: 40.84 kB / 489.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.947e-05/0.4282, allocations: 39.94 kB / 489.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.4282, allocations: 7.984 kB / 489.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001033/0.4283, allocations: 139.6 kB / 490 MB, free: 15.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009929/0.4293, allocations: 83.73 kB / 490.1 MB, free: 15.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0005791/0.4299, allocations: 284.9 kB / 490.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005468/0.4305, allocations: 332.7 kB / 490.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4305, allocations: 0 / 490.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002969/0.4308, allocations: 212.6 kB / 490.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.4312, allocations: 39.05 kB / 490.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009571/0.4321, allocations: 0.5085 MB / 491.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.4325, allocations: 0.7827 MB / 492.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4325, allocations: 0 / 492.2 MB, free: 13.57 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat