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: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 56.25 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.09059, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003539/0.09415, allocations: 2.28 MB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.09542, allocations: 0.8762 MB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.418e-05/0.09553, allocations: 7.938 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002165/0.09576, allocations: 39.66 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.09601, allocations: 111.2 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.09624, allocations: 91.75 kB / 362.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.09656, allocations: 287.4 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.09671, allocations: 64.25 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/0.09696, allocations: 135.5 kB / 362.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.09716, allocations: 131.5 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.09721, allocations: 28 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.09735, allocations: 79.95 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.153e-05/0.09744, allocations: 47.84 kB / 363 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.09757, allocations: 127.3 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003458/0.09792, allocations: 315 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.09793, allocations: 0 / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09794, allocations: 0 / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.09796, allocations: 0 / 363.5 MB, free: 8.734 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.0009818/0.09894, allocations: 0.586 MB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.09898, allocations: 12.03 kB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.09915, allocations: 32.64 kB / 364.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.09949, allocations: 257.5 kB / 364.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.09952, allocations: 12.38 kB / 364.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.09958, allocations: 28.31 kB / 364.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004518/0.1, allocations: 227.3 kB / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1001, allocations: 4 kB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.1001, allocations: 8 kB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1001, allocations: 4 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004603/0.1006, allocations: 179.9 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008875/0.1015, allocations: 0.6408 MB / 365.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.102, allocations: 202.4 kB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1023, allocations: 108.7 kB / 365.8 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1023, allocations: 7.984 kB / 365.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003375/0.1026, allocations: 168.2 kB / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.994e-06/0.1027, allocations: 0 / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002252/0.1049, allocations: 1.162 MB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.105, allocations: 59.39 kB / 367.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.1052, allocations: 211 kB / 367.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.1052, allocations: 29.7 kB / 367.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.459e-05/0.1053, allocations: 132.4 kB / 367.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.665e-05/0.1053, allocations: 90.75 kB / 367.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.633e-05/0.1055, allocations: 57.7 kB / 367.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1056, allocations: 334.8 kB / 368 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.1058, allocations: 99.94 kB / 368.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.1061, allocations: 140.4 kB / 368.2 MB, free: 3.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004652/0.1066, allocations: 242 kB / 368.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1066, allocations: 4 kB / 368.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007448/0.1073, allocations: 385.6 kB / 368.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.1074, allocations: 31.89 kB / 368.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1074, allocations: 4 kB / 368.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.1076, allocations: 60.75 kB / 368.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.1078, allocations: 51.91 kB / 369 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.1096, allocations: 1.802 MB / 370.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.1098, allocations: 31.95 kB / 370.8 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.1099, allocations: 12 kB / 370.8 MB, free: 0.8477 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.0001423/0.11, allocations: 153.7 kB / 371 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.1101, allocations: 15.81 kB / 371 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.1101, allocations: 30.55 kB / 371 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1102, allocations: 8 kB / 371 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1102, allocations: 3.938 kB / 371 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1102, allocations: 0 / 371 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1679/0.278, allocations: 0.68 MB / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.2781, allocations: 0.75 kB / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.2784, allocations: 46.98 kB / 371.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.2785, allocations: 60.05 kB / 371.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.2786, allocations: 7.297 kB / 371.8 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.2799, allocations: 1.642 MB / 373.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.28, allocations: 2.812 kB / 373.5 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.281, allocations: 0.5058 MB / 374 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.2812, allocations: 113.5 kB / 374.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.2812, allocations: 9.781 kB / 374.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.2815, allocations: 30.97 kB / 374.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.2817, allocations: 74.66 kB / 374.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.2817, allocations: 9.891 kB / 374.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001754/0.2819, allocations: 142.7 kB / 374.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2819, allocations: 1.062 kB / 374.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004634/0.2824, allocations: 80.34 kB / 374.4 MB, free: 18.42 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.0008148/0.2832, allocations: 366.6 kB / 374.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008745/0.2841, allocations: 454.3 kB / 375.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2841, allocations: 0 / 375.2 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.2845, allocations: 269.6 kB / 375.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.285, allocations: 48.8 kB / 375.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.2863, allocations: 0.666 MB / 376.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.2866, allocations: 0.7509 MB / 377 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.2867, allocations: 28.17 kB / 377 MB, free: 16.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.2868, allocations: 26.5 kB / 377 MB, free: 16.94 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2868, allocations: 1.031 kB / 377 MB, free: 16.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01094/0.2978, allocations: 4.542 MB / 381.5 MB, free: 16.62 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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) Reference file matches