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.001289/0.001289, allocations: 121.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002013/0.002013, allocations: 207.8 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2319, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003668/0.2357, allocations: 2.325 MB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2371, allocations: 0.8529 MB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.2373, allocations: 4 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002718/0.2376, allocations: 51.58 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.238, allocations: 107.2 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.2382, allocations: 79.83 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.2386, allocations: 287.3 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.2388, allocations: 72.28 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.239, allocations: 123.6 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.2393, allocations: 131.4 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.826e-05/0.2393, allocations: 20 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001682/0.2395, allocations: 75.97 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-05/0.2396, allocations: 51.84 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.2397, allocations: 123.4 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.2401, allocations: 308.7 kB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2401, allocations: 0 / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2401, allocations: 0 / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.2402, allocations: 0 / 413.3 MB, free: 12.92 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.0008498/0.241, allocations: 0.5457 MB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2411, allocations: 8.031 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.767e-05/0.2411, allocations: 54.73 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.2413, allocations: 36.64 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.2417, allocations: 247.9 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2417, allocations: 12.75 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.2418, allocations: 24.36 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003709/0.2421, allocations: 210.8 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.2422, allocations: 11.88 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.2422, allocations: 8 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2422, allocations: 4 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.2425, allocations: 159 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.2436, allocations: 0.774 MB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.244, allocations: 142.5 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2441, allocations: 73.02 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.2441, allocations: 0 / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.2442, allocations: 38.56 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.253e-06/0.2442, allocations: 0 / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001854/0.246, allocations: 0.9901 MB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.2461, allocations: 55.41 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.2463, allocations: 222.8 kB / 416.9 MB, free: 9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.2464, allocations: 33.7 kB / 416.9 MB, free: 8.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.427e-05/0.2465, allocations: 140.2 kB / 417.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.971e-05/0.2465, allocations: 71 kB / 417.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/0.2466, allocations: 53.69 kB / 417.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2467, allocations: 326.8 kB / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.2469, allocations: 75.91 kB / 417.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.2471, allocations: 115.3 kB / 417.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.2474, allocations: 159.3 kB / 417.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2474, allocations: 4 kB / 417.9 MB, free: 7.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004905/0.2479, allocations: 270 kB / 418.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2479, allocations: 8 kB / 418.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2479, allocations: 0 / 418.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002202/0.2482, allocations: 56.83 kB / 418.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.2483, allocations: 39.92 kB / 418.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.2501, allocations: 1.811 MB / 420 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.2503, allocations: 23.97 kB / 420.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.2504, allocations: 8 kB / 420.1 MB, free: 5.637 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.0001284/0.2505, allocations: 137.7 kB / 420.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.2506, allocations: 27.73 kB / 420.2 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.2506, allocations: 29.94 kB / 420.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2506, allocations: 3.938 kB / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.2506, allocations: 0 / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2506, allocations: 7.984 kB / 420.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008531/0.2515, allocations: 0.6052 MB / 420.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.2515, allocations: 4.062 kB / 420.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.2517, allocations: 31.98 kB / 420.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.2519, allocations: 56.86 kB / 421 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.2519, allocations: 7.938 kB / 421 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001469/0.2534, allocations: 1.657 MB / 422.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2534, allocations: 4.031 kB / 422.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006345/0.254, allocations: 430.1 kB / 423.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.2541, allocations: 108.9 kB / 423.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.2542, allocations: 15.94 kB / 423.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.2544, allocations: 19.97 kB / 423.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2545, allocations: 71.84 kB / 423.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.2546, allocations: 4 kB / 423.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001469/0.2547, allocations: 156.6 kB / 423.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2547, allocations: 0 / 423.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004134/0.2551, allocations: 71.98 kB / 423.5 MB, free: 1.945 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.001559/0.2567, allocations: 1.207 MB / 424.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005853/0.2573, allocations: 326.3 kB / 425 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2573, allocations: 0 / 425 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.2576, allocations: 234.7 kB / 425.3 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.2581, allocations: 47.23 kB / 425.3 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.2616, allocations: 2.648 MB / 428 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.2619, allocations: 0.7441 MB / 428.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.262, allocations: 29.86 kB / 428.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.2621, allocations: 67.36 kB / 428.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2622, allocations: 0 / 428.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.2909, allocations: 6.648 MB / 435.4 MB, free: 6.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.34, allocations: 20.41 kB / 435.5 MB, free: 6.09 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