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.001394/0.001394, 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.001516/0.001516, 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.33/1.33, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.33 kB / 307 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08568, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003668/0.08938, allocations: 2.268 MB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.09088, allocations: 0.8762 MB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.09103, allocations: 7.938 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.09128, allocations: 51.56 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002667/0.09156, allocations: 103.2 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.0918, allocations: 83.83 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000301/0.09211, allocations: 299.4 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.09226, allocations: 60.34 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.0925, allocations: 131.5 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.09272, allocations: 139.4 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.09287, allocations: 20 kB / 361.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.09303, allocations: 75.98 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.511e-05/0.09311, allocations: 55.81 kB / 361.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.09323, allocations: 115.4 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.0936, allocations: 315.3 kB / 362.1 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.09361, allocations: 4 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09362, allocations: 0 / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.09363, allocations: 0 / 362.2 MB, free: 9.371 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.000982/0.09462, allocations: 0.5821 MB / 362.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.09466, allocations: 12.03 kB / 362.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.942e-05/0.09472, allocations: 50.73 kB / 362.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.09489, allocations: 40.64 kB / 362.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.09517, allocations: 253.5 kB / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.0952, allocations: 16.38 kB / 363.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.09525, allocations: 16.38 kB / 363.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004568/0.09572, allocations: 227.3 kB / 363.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.09574, allocations: 0 / 363.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.09577, allocations: 8 kB / 363.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.09578, allocations: 8 kB / 363.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.09628, allocations: 187.6 kB / 363.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009819/0.09727, allocations: 0.6448 MB / 364.2 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.09781, allocations: 217.5 kB / 364.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.09805, allocations: 100.8 kB / 364.5 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.09808, allocations: 4 kB / 364.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004006/0.09849, allocations: 168.2 kB / 364.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 6.322e-06/0.09853, allocations: 4 kB / 364.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002411/0.101, allocations: 1.166 MB / 365.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.101, allocations: 59.41 kB / 365.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.1012, allocations: 198.6 kB / 366.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1012, allocations: 33.7 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.059e-05/0.1013, allocations: 128.4 kB / 366.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.1014, allocations: 94.73 kB / 366.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.632e-05/0.1015, allocations: 61.59 kB / 366.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.1016, allocations: 338.8 kB / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.1018, allocations: 99.88 kB / 366.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.1021, allocations: 137.2 kB / 367 MB, free: 4.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.1026, allocations: 242.1 kB / 367.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.1027, allocations: 0 / 367.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007336/0.1034, allocations: 373.8 kB / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.1035, allocations: 44.5 kB / 367.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1035, allocations: 0 / 367.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.1037, allocations: 56.78 kB / 367.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.1039, allocations: 55.89 kB / 367.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001618/0.1055, allocations: 1.801 MB / 369.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.1058, allocations: 31.95 kB / 369.5 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.1058, allocations: 12 kB / 369.6 MB, free: 1.43 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: 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.0001242/0.1059, allocations: 145.7 kB / 369.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.106, allocations: 23.78 kB / 369.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.813e-05/0.106, allocations: 34.55 kB / 369.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.106, allocations: 4 kB / 369.8 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1061, allocations: 3.938 kB / 369.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.1061, allocations: 3.984 kB / 369.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.1072, allocations: 0.6904 MB / 370.5 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1072, allocations: 0 / 370.5 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.1074, allocations: 39.97 kB / 370.5 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001283/0.1075, allocations: 48.84 kB / 370.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.1076, allocations: 11.92 kB / 370.6 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1389/0.2465, allocations: 1.656 MB / 372.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2465, allocations: 0 / 372.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.2475, allocations: 0.5007 MB / 372.7 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.2476, allocations: 117.5 kB / 372.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.2477, allocations: 6.234 kB / 372.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.2479, allocations: 31.16 kB / 372.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.2481, allocations: 70.45 kB / 372.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.2481, allocations: 10.3 kB / 372.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.2482, allocations: 147.2 kB / 373.1 MB, free: 18.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2482, allocations: 2.219 kB / 373.1 MB, free: 18.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003993/0.2486, allocations: 76.22 kB / 373.2 MB, free: 18.53 MB / 302.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.001793/0.2504, allocations: 1.318 MB / 374.5 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008879/0.2513, allocations: 448 kB / 374.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.2514, allocations: 0 / 374.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.2517, allocations: 267 kB / 375.2 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.2522, allocations: 49.33 kB / 375.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003611/0.2558, allocations: 2.816 MB / 378 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.2559, allocations: 0.7471 MB / 378.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.2561, allocations: 32.2 kB / 378.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.914e-05/0.2562, allocations: 68.86 kB / 378.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2562, allocations: 0 / 378.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.85/3.106, allocations: 6.963 MB / 385.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/17.47, allocations: 4.594 kB / 385.9 MB, free: 13.38 MB / 302.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.0.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