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.001469/0.001469, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.83 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2491, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003546/0.2527, allocations: 2.32 MB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.2542, allocations: 0.8529 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.2544, allocations: 7.938 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002667/0.2547, allocations: 55.56 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.255, allocations: 103.3 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.2553, allocations: 79.83 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002957/0.2556, allocations: 279.4 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2558, allocations: 64.31 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.256, allocations: 131.5 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.2562, allocations: 127.5 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.2562, allocations: 20 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.2564, allocations: 79.98 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.567e-05/0.2564, allocations: 51.83 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2566, allocations: 119.4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003589/0.2569, allocations: 316.6 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2569, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.257, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.257, allocations: 0 / 413.3 MB, free: 12.95 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.0007998/0.2578, allocations: 0.5379 MB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.2578, allocations: 8.031 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.258e-05/0.2579, allocations: 50.73 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.258, allocations: 36.64 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2584, allocations: 251.8 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.2584, allocations: 20.69 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.2584, allocations: 20.38 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.2588, allocations: 222.7 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2588, allocations: 3.984 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.2589, allocations: 11.94 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2589, allocations: 4 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.2592, allocations: 155 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.2603, allocations: 0.774 MB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.2606, allocations: 142.5 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.2608, allocations: 73.02 kB / 415.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.2608, allocations: 0 / 415.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.2608, allocations: 30.56 kB / 415.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.092e-06/0.2608, allocations: 8 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001814/0.2627, allocations: 0.994 MB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.2627, allocations: 55.41 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.2629, allocations: 222.7 kB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.263, allocations: 25.7 kB / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/0.263, allocations: 148.2 kB / 417.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.2631, allocations: 67.02 kB / 417.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.262e-05/0.2632, allocations: 53.69 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.2633, allocations: 330.8 kB / 417.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2635, allocations: 67.97 kB / 417.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2636, allocations: 111.4 kB / 417.7 MB, free: 8.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.2639, allocations: 163.3 kB / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2639, allocations: 0 / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004455/0.2644, allocations: 274 kB / 418.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.2644, allocations: 4 kB / 418.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2644, allocations: 4 kB / 418.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001946/0.2646, allocations: 52.88 kB / 418.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.2648, allocations: 47.97 kB / 418.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.2665, allocations: 1.814 MB / 420.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.2667, allocations: 20.02 kB / 420.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.2667, allocations: 8 kB / 420.1 MB, free: 5.668 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.0001187/0.2668, allocations: 153.7 kB / 420.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.085e-05/0.2669, allocations: 19.75 kB / 420.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.2669, allocations: 21.88 kB / 420.3 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2669, allocations: 4 kB / 420.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.2669, allocations: 0 / 420.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.267, allocations: 3.984 kB / 420.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008099/0.2678, allocations: 0.6128 MB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2678, allocations: 4 kB / 420.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.268, allocations: 27.98 kB / 420.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001424/0.2681, allocations: 56.77 kB / 421 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.2681, allocations: 11.94 kB / 421 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.2696, allocations: 1.665 MB / 422.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2696, allocations: 8 kB / 422.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006359/0.2702, allocations: 422.1 kB / 423.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.913e-05/0.2703, allocations: 108.9 kB / 423.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.2704, allocations: 11.92 kB / 423.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.2705, allocations: 23.98 kB / 423.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.2707, allocations: 67.91 kB / 423.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.2707, allocations: 4 kB / 423.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001427/0.2709, allocations: 160.6 kB / 423.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2709, allocations: 0 / 423.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.2713, allocations: 68 kB / 423.5 MB, free: 1.973 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.001561/0.2728, allocations: 1.205 MB / 424.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000571/0.2734, allocations: 322.4 kB / 425 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2734, allocations: 0 / 425 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.2738, allocations: 230.6 kB / 425.3 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.2742, allocations: 39.92 kB / 425.3 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.2773, allocations: 2.674 MB / 428 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.2776, allocations: 0.7402 MB / 428.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.923e-05/0.2777, allocations: 29.94 kB / 428.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2778, allocations: 71.41 kB / 428.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2779, allocations: 0 / 428.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.305, allocations: 6.643 MB / 435.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.41, allocations: 19.11 kB / 435.5 MB, free: 6.113 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.0.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