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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001731/0.001732, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.08 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2427, allocations: 50.54 MB / 408.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003334/0.2461, allocations: 2.286 MB / 411 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2473, allocations: 0.8646 MB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.772e-05/0.2475, allocations: 4 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.2477, allocations: 51.52 kB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.248, allocations: 107.2 kB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.2482, allocations: 87.81 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.2485, allocations: 295.4 kB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2487, allocations: 56.36 kB / 412.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.2489, allocations: 131.5 kB / 412.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.2491, allocations: 135.4 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/0.2492, allocations: 24 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2493, allocations: 83.95 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-05/0.2494, allocations: 55.83 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.2495, allocations: 119.4 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.2499, allocations: 312.7 kB / 413.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2499, allocations: 0 / 413.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2499, allocations: 0 / 413.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.2499, allocations: 0 / 413.3 MB, free: 13.06 MB / 334.1 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.0009756/0.2509, allocations: 0.5938 MB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2509, allocations: 12.03 kB / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.251, allocations: 46.73 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.2512, allocations: 40.64 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.2515, allocations: 245.5 kB / 414.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.2515, allocations: 12.38 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.2516, allocations: 20.38 kB / 414.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.2521, allocations: 231.1 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.2521, allocations: 11.84 kB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.2521, allocations: 11.98 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2521, allocations: 4 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004727/0.2526, allocations: 175.9 kB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009307/0.2535, allocations: 0.6486 MB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.2541, allocations: 214.3 kB / 415.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.2544, allocations: 104.8 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.2544, allocations: 4 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.2548, allocations: 163.2 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.2548, allocations: 4 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002404/0.2572, allocations: 1.16 MB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.2572, allocations: 55.41 kB / 417.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.2574, allocations: 195.4 kB / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.2575, allocations: 33.7 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.364e-05/0.2576, allocations: 136.3 kB / 417.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.2576, allocations: 90.73 kB / 417.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.2577, allocations: 53.7 kB / 417.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.2578, allocations: 342.8 kB / 417.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.2581, allocations: 99.94 kB / 418 MB, free: 8.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.2584, allocations: 148 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.2589, allocations: 238.6 kB / 418.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2589, allocations: 0 / 418.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000763/0.2597, allocations: 373.6 kB / 418.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.548e-05/0.2597, allocations: 37.77 kB / 418.8 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2597, allocations: 3.984 kB / 418.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.2599, allocations: 56.78 kB / 418.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.2601, allocations: 51.91 kB / 418.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.2618, allocations: 1.802 MB / 420.7 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.262, allocations: 40.02 kB / 420.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.262, allocations: 8 kB / 420.7 MB, free: 5.109 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.2622, allocations: 145.9 kB / 420.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.2622, allocations: 19.81 kB / 420.9 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.2623, allocations: 30.55 kB / 420.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2623, allocations: 4 kB / 420.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2623, allocations: 7.938 kB / 420.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2623, allocations: 0 / 420.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.2634, allocations: 0.6869 MB / 421.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.2634, allocations: 11.92 kB / 421.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.2636, allocations: 43.97 kB / 421.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001296/0.2638, allocations: 48.84 kB / 421.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.2638, allocations: 7.984 kB / 421.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.2652, allocations: 1.649 MB / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2652, allocations: 0 / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009498/0.2662, allocations: 0.517 MB / 423.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.775e-05/0.2663, allocations: 108.9 kB / 424 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.2663, allocations: 4 kB / 424 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.2666, allocations: 35.89 kB / 424 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.2667, allocations: 79.89 kB / 424.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.2668, allocations: 4 kB / 424.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.2669, allocations: 143.2 kB / 424.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2669, allocations: 0 / 424.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.2673, allocations: 72 kB / 424.3 MB, free: 1.254 MB / 334.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001961/0.2693, allocations: 1.312 MB / 425.6 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008284/0.2701, allocations: 449.8 kB / 426.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2701, allocations: 0 / 426.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.2706, allocations: 270.5 kB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.271, allocations: 51.06 kB / 426.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003811/0.2748, allocations: 2.824 MB / 429.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.2751, allocations: 0.7441 MB / 430 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.2752, allocations: 29.92 kB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.2754, allocations: 71.41 kB / 430.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2754, allocations: 4 kB / 430.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.3035, allocations: 7.295 MB / 437.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.25, allocations: 2.5 kB / 437.4 MB, free: 4.309 MB / 350.1 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/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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:der(inertiaIn.phi),der(inertiaIn.w),der(inertiaOut.phi),der(inertiaOut.w),der(oneWayClutch.phi_rel),der(oneWayClutch.w_rel),inertiaIn.J,inertiaIn.a,inertiaIn.flange_a.phi,inertiaIn.flange_a.tau,inertiaIn.flange_b.phi,inertiaIn.flange_b.tau,inertiaIn.phi,inertiaIn.stateSelect,inertiaIn.w,inertiaOut.J,inertiaOut.a,inertiaOut.flange_a.phi,inertiaOut.flange_a.tau,inertiaOut.flange_b.phi,inertiaOut.flange_b.tau,inertiaOut.phi,inertiaOut.stateSelect,inertiaOut.w,oneWayClutch.a_rel,oneWayClutch.cgeo,oneWayClutch.f_normalized,oneWayClutch.flange_a.phi,oneWayClutch.flange_a.tau,oneWayClutch.flange_b.phi,oneWayClutch.flange_b.tau,oneWayClutch.fn,oneWayClutch.fn_max,oneWayClutch.locked,oneWayClutch.lossPower,oneWayClutch.mu,oneWayClutch.mu_pos[1,1],oneWayClutch.mu_pos[1,2],oneWayClutch.peak,oneWayClutch.phi_nominal,oneWayClutch.phi_rel,oneWayClutch.smoothness,oneWayClutch.startForward,oneWayClutch.stateSelect,oneWayClutch.stuck,oneWayClutch.tau,oneWayClutch.u,oneWayClutch.useHeatPort,oneWayClutch.w_rel,oneWayClutch.w_small,signalEngagement.amplitude,signalEngagement.nperiod,signalEngagement.offset,signalEngagement.period,signalEngagement.startTime,signalEngagement.width,signalEngagement.y,signalTorque.amplitude,signalTorque.continuous,signalTorque.f,signalTorque.offset,signalTorque.phase,signalTorque.startTime,signalTorque.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport