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/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 67.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2463, allocations: 50.56 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003691/0.2501, allocations: 2.324 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2515, allocations: 0.8529 MB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.2516, allocations: 4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2519, allocations: 55.56 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.2522, allocations: 107.2 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.2524, allocations: 87.77 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.2527, allocations: 271.4 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.2529, allocations: 68.3 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.2531, allocations: 127.5 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.2533, allocations: 119.5 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.2534, allocations: 23.98 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.2535, allocations: 79.97 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.375e-05/0.2536, allocations: 51.84 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.2537, allocations: 123.3 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003871/0.2541, allocations: 305.8 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2541, allocations: 0 / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2542, allocations: 4 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.2542, allocations: 0 / 413.4 MB, free: 12.88 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008203/0.255, allocations: 0.5453 MB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.255, allocations: 8.031 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.2551, allocations: 58.72 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.2553, allocations: 28.8 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.2556, allocations: 259.9 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2557, allocations: 12.75 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.44e-05/0.2557, allocations: 28.33 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.2561, allocations: 210.8 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.2561, allocations: 4 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.2562, allocations: 11.94 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.2562, allocations: 4 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000333/0.2565, allocations: 167.2 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2577, allocations: 0.7665 MB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.258, allocations: 146.7 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.2582, allocations: 64.83 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.2582, allocations: 8.344 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.2583, allocations: 38.56 kB / 415.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.2583, allocations: 3.938 kB / 415.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001934/0.2602, allocations: 0.9995 MB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.2603, allocations: 51.41 kB / 416.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.2605, allocations: 218.8 kB / 417 MB, free: 8.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.2606, allocations: 29.7 kB / 417 MB, free: 8.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.2607, allocations: 144.4 kB / 417.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.2607, allocations: 79.36 kB / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.539e-05/0.2608, allocations: 49.7 kB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.261, allocations: 334.8 kB / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.2612, allocations: 71.97 kB / 417.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.2613, allocations: 107.4 kB / 417.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.2616, allocations: 163.3 kB / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2616, allocations: 0 / 418 MB, free: 7.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004972/0.2621, allocations: 262.2 kB / 418.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2622, allocations: 11.94 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2622, allocations: 0 / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/0.2624, allocations: 60.89 kB / 418.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.2626, allocations: 39.97 kB / 418.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.2645, allocations: 1.815 MB / 420.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.2647, allocations: 23.97 kB / 420.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.2647, allocations: 16.06 kB / 420.2 MB, free: 5.562 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked 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 (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.0001384/0.2649, allocations: 129.8 kB / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.2649, allocations: 27.8 kB / 420.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.88e-05/0.265, allocations: 29.86 kB / 420.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.265, allocations: 4 kB / 420.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.265, allocations: 3.938 kB / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.265, allocations: 0 / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009327/0.266, allocations: 0.6129 MB / 421 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.266, allocations: 3.984 kB / 421 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.2662, allocations: 39.98 kB / 421 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001531/0.2663, allocations: 56.81 kB / 421.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.2664, allocations: 7.938 kB / 421.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.268, allocations: 1.653 MB / 422.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.268, allocations: 3.984 kB / 422.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006788/0.2687, allocations: 430.2 kB / 423.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2688, allocations: 113 kB / 423.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.2689, allocations: 11.94 kB / 423.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.269, allocations: 19.97 kB / 423.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.2692, allocations: 59.92 kB / 423.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.2692, allocations: 11.98 kB / 423.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.2694, allocations: 156.6 kB / 423.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2694, allocations: 0 / 423.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000398/0.2698, allocations: 68 kB / 423.6 MB, free: 1.879 MB / 334.1 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) * Number of clocked states: 0 () * 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 (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.002123/0.2719, allocations: 1.2 MB / 424.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006199/0.2726, allocations: 330.4 kB / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2726, allocations: 0 / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.2729, allocations: 238.4 kB / 425.4 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.2734, allocations: 49.66 kB / 425.4 MB, free: 132 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.277, allocations: 2.655 MB / 428.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.2774, allocations: 0.748 MB / 428.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2775, allocations: 33.88 kB / 428.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.2776, allocations: 67.41 kB / 428.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2776, allocations: 0 / 428.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03604/0.3137, allocations: 6.49 MB / 435.4 MB, free: 6.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.95, allocations: 14.48 kB / 435.4 MB, free: 6.172 MB / 350.1 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/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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.w),der(oneWayClutch.phi_rel),der(oneWayClutch.w_rel),der(torqueLoad.phi),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.k,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,torqueLoad.flange.phi,torqueLoad.flange.tau,torqueLoad.phi,torqueLoad.tau,torqueLoad.tau_constant,torqueLoad.useSupport,torqueLoad.w