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.001065/0.001065, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 59.22 kB / 307 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07721/0.07833, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003134/0.0815, allocations: 2.322 MB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.08261, allocations: 0.8529 MB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.455e-05/0.08272, allocations: 7.938 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.08293, allocations: 55.56 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.08316, allocations: 115.2 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.08334, allocations: 75.83 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.08358, allocations: 267.5 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.08373, allocations: 72.28 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.08391, allocations: 123.5 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.08409, allocations: 131.5 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.546e-05/0.08413, allocations: 20 kB / 361.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.08427, allocations: 79.97 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.08434, allocations: 51.83 kB / 361.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.892e-05/0.08445, allocations: 123.3 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.08475, allocations: 303.3 kB / 362.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.08476, allocations: 0 / 362.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.08477, allocations: 0 / 362.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.08478, allocations: 0 / 362.1 MB, free: 9.387 MB / 302.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.0007043/0.08549, allocations: 0.538 MB / 362.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.08552, allocations: 8.031 kB / 362.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.08557, allocations: 54.73 kB / 362.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.08572, allocations: 32.64 kB / 362.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.08596, allocations: 247.8 kB / 363 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.08599, allocations: 16.75 kB / 363 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.08603, allocations: 24.31 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.08635, allocations: 218.8 kB / 363.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.08638, allocations: 7.891 kB / 363.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.0864, allocations: 7.984 kB / 363.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.08641, allocations: 7.938 kB / 363.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.0867, allocations: 159 kB / 363.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009096/0.08762, allocations: 0.7702 MB / 364.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003168/0.08795, allocations: 142.5 kB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.08809, allocations: 77.02 kB / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.08811, allocations: 0 / 364.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.08814, allocations: 34.56 kB / 364.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 9.12e-07/0.08814, allocations: 0 / 364.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001608/0.08976, allocations: 0.9866 MB / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.0898, allocations: 59.34 kB / 365.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.08999, allocations: 230.7 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.09002, allocations: 29.7 kB / 365.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.595e-05/0.09009, allocations: 132.2 kB / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.51e-05/0.09015, allocations: 74.98 kB / 366 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.09023, allocations: 57.55 kB / 366 MB, free: 5.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.09032, allocations: 334.8 kB / 366.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.09047, allocations: 71.97 kB / 366.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.09063, allocations: 115.4 kB / 366.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.09088, allocations: 161 kB / 366.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.09089, allocations: 0 / 366.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004183/0.09132, allocations: 270.1 kB / 367 MB, free: 4.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.09134, allocations: 10.88 kB / 367 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.09135, allocations: 4 kB / 367 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000169/0.09152, allocations: 48.84 kB / 367 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.09167, allocations: 43.91 kB / 367.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.09326, allocations: 1.809 MB / 368.9 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.09344, allocations: 24 kB / 368.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.09347, allocations: 8 kB / 368.9 MB, free: 2.102 MB / 302.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.000105/0.09358, allocations: 145.7 kB / 369 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.09364, allocations: 23.66 kB / 369.1 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.32e-05/0.09369, allocations: 29.92 kB / 369.1 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.0937, allocations: 4 kB / 369.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.0937, allocations: 0 / 369.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.09371, allocations: 3.938 kB / 369.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007782/0.09449, allocations: 0.6139 MB / 369.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.09451, allocations: 4.062 kB / 369.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.09466, allocations: 28.05 kB / 369.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.09481, allocations: 60.92 kB / 369.8 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.09483, allocations: 11.94 kB / 369.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1146/0.2095, allocations: 1.657 MB / 371.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2095, allocations: 0.75 kB / 371.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006261/0.2101, allocations: 424.5 kB / 371.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.873e-05/0.2102, allocations: 114.4 kB / 372 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.2103, allocations: 6.922 kB / 372 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.2105, allocations: 21.84 kB / 372 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.2106, allocations: 67.42 kB / 372.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.2106, allocations: 6.812 kB / 372.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.2108, allocations: 157.5 kB / 372.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2108, allocations: 0.625 kB / 372.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003912/0.2112, allocations: 69.14 kB / 372.3 MB, free: 18.5 MB / 302.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.001328/0.2125, allocations: 1.209 MB / 373.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005399/0.213, allocations: 322.3 kB / 373.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2131, allocations: 0 / 373.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002637/0.2133, allocations: 230.8 kB / 374.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.2137, allocations: 51.72 kB / 374.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.2165, allocations: 2.666 MB / 376.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.2167, allocations: 0.7491 MB / 377.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.668e-05/0.2168, allocations: 23.83 kB / 377.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.598e-05/0.2169, allocations: 67.41 kB / 377.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2169, allocations: 0 / 377.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.169/2.386, allocations: 6.35 MB / 384 MB, free: 14.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/16.5, allocations: 8.016 kB / 384 MB, free: 14.07 MB / 302.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