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.001268/0.001268, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001298, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2422, allocations: 50.56 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003808/0.2461, allocations: 2.285 MB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2477, allocations: 0.8684 MB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.2478, allocations: 4 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.2481, allocations: 51.58 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002854/0.2484, allocations: 115.2 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.2487, allocations: 79.83 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.249, allocations: 291.3 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.2492, allocations: 68.34 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.2495, allocations: 127.5 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/0.2497, allocations: 139.4 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.2497, allocations: 24 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.2499, allocations: 79.97 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-05/0.25, allocations: 51.83 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.2501, allocations: 123.4 kB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004317/0.2506, allocations: 309.8 kB / 413.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2506, allocations: 4 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2506, allocations: 0 / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.2506, 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001038/0.2517, allocations: 0.6011 MB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2517, allocations: 12.03 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.876e-05/0.2518, allocations: 50.73 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.252, allocations: 36.78 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.2523, allocations: 245.7 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.2524, allocations: 12.38 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.2524, allocations: 28.36 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.2529, allocations: 231.1 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.253, allocations: 0 / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.253, allocations: 8 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.253, allocations: 11.88 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.2535, allocations: 183.9 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.2545, allocations: 0.6409 MB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/0.2551, allocations: 210.3 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.2554, allocations: 104.8 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.2554, allocations: 0 / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003855/0.2558, allocations: 163.2 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.2558, allocations: 0 / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002579/0.2584, allocations: 1.172 MB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.2585, allocations: 55.41 kB / 417.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002302/0.2587, allocations: 194.8 kB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.2587, allocations: 33.7 kB / 417.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2588, allocations: 132.5 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.871e-05/0.2589, allocations: 95.16 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.259, allocations: 61.69 kB / 417.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2592, allocations: 342.8 kB / 418 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.2595, allocations: 95.94 kB / 418.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.2598, allocations: 141 kB / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.2603, allocations: 242.6 kB / 418.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2603, allocations: 0 / 418.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008332/0.2612, allocations: 377.8 kB / 418.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/0.2612, allocations: 37.7 kB / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2612, allocations: 0 / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002183/0.2614, allocations: 64.75 kB / 418.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.2617, allocations: 47.91 kB / 419 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.2636, allocations: 1.807 MB / 420.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.2639, allocations: 27.97 kB / 420.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.2639, allocations: 11.98 kB / 420.8 MB, free: 4.926 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.0001802/0.2641, allocations: 141.9 kB / 420.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.941e-05/0.2642, allocations: 23.86 kB / 421 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.686e-05/0.2643, allocations: 38.61 kB / 421 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2643, allocations: 7.938 kB / 421 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2643, allocations: 3.938 kB / 421 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2643, allocations: 0 / 421 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.2655, allocations: 0.6869 MB / 421.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.2655, allocations: 3.984 kB / 421.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.2657, allocations: 39.97 kB / 421.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.2659, allocations: 60.81 kB / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.2659, allocations: 0 / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.2676, allocations: 1.649 MB / 423.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2676, allocations: 64 / 423.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2686, allocations: 0.5132 MB / 424 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.2688, allocations: 121 kB / 424.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.2688, allocations: 4 kB / 424.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.2691, allocations: 31.91 kB / 424.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.2693, allocations: 71.89 kB / 424.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.2693, allocations: 15.98 kB / 424.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001542/0.2694, allocations: 143.6 kB / 424.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2695, allocations: 0 / 424.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.2699, allocations: 79.94 kB / 424.4 MB, free: 1.055 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.002545/0.2724, allocations: 1.309 MB / 425.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009777/0.2734, allocations: 449.7 kB / 426.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2734, allocations: 0 / 426.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004695/0.2739, allocations: 274.6 kB / 426.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.2744, allocations: 48.03 kB / 426.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004411/0.2788, allocations: 2.824 MB / 429.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.2792, allocations: 0.748 MB / 430.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.2794, allocations: 29.88 kB / 430.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2795, allocations: 71.41 kB / 430.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2795, allocations: 4 kB / 430.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03624/0.3158, allocations: 7.111 MB / 437.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/11.99, allocations: 11.38 kB / 437.3 MB, free: 4.281 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.1.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