Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 192.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001055, allocations: 47.94 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2579, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003728/0.2617, allocations: 2.215 MB / 403.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.2631, allocations: 0.6856 MB / 404.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.2633, allocations: 4 kB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.2635, allocations: 35.59 kB / 404.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.2637, allocations: 63.48 kB / 404.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.2641, allocations: 111.7 kB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.2645, allocations: 255.4 kB / 404.8 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2646, allocations: 56.38 kB / 404.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.2649, allocations: 119.5 kB / 404.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.2651, allocations: 115.5 kB / 405 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.746e-05/0.2652, allocations: 20 kB / 405.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2653, allocations: 75.94 kB / 405.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.563e-05/0.2654, allocations: 47.84 kB / 405.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.2655, allocations: 111.4 kB / 405.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.2659, allocations: 280.2 kB / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2659, allocations: 0 / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2659, allocations: 0 / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.2659, allocations: 0 / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008308/0.2668, allocations: 0.5185 MB / 406.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2668, allocations: 12.03 kB / 406.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.2669, allocations: 24.66 kB / 406.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.2672, allocations: 228 kB / 406.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.2673, allocations: 12.81 kB / 406.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.2673, allocations: 24.38 kB / 406.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004166/0.2678, allocations: 222 kB / 406.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/0.2678, allocations: 7.891 kB / 406.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.2678, allocations: 16 kB / 406.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.2678, allocations: 7.984 kB / 406.6 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/0.2682, allocations: 161 kB / 406.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.2694, allocations: 0.7758 MB / 407.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.2698, allocations: 134.5 kB / 407.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.2699, allocations: 60.84 kB / 407.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.2699, allocations: 7.938 kB / 407.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.27, allocations: 38.55 kB / 407.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.27, allocations: 0 / 407.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001858/0.2718, allocations: 0.9814 MB / 408.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.2719, allocations: 55.41 kB / 408.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2721, allocations: 219.8 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.2721, allocations: 29.7 kB / 409.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.957e-05/0.2722, allocations: 136.2 kB / 409.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.164e-05/0.2723, allocations: 71.02 kB / 409.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.2724, allocations: 57.62 kB / 409.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2725, allocations: 330.8 kB / 409.7 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.2726, allocations: 83.94 kB / 409.7 MB, free: 180 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.2728, allocations: 120.1 kB / 409.9 MB, free: 44 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.2731, allocations: 165.4 kB / 410 MB, free: 15.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.2731, allocations: 0 / 410 MB, free: 15.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004884/0.2736, allocations: 296.4 kB / 410.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.2737, allocations: 4 kB / 410.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2737, allocations: 4 kB / 410.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/0.2739, allocations: 76.8 kB / 410.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.2741, allocations: 35.92 kB / 410.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005357/0.2746, allocations: 0.6148 MB / 411 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.2748, allocations: 24.05 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.2749, allocations: 15.98 kB / 411.1 MB, free: 14.77 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 (26): * Single equations (assignments): 25 * 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.0001445/0.275, allocations: 137.7 kB / 411.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.687e-05/0.2751, allocations: 15.81 kB / 411.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.173e-05/0.2751, allocations: 29.86 kB / 411.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2752, allocations: 8 kB / 411.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2752, allocations: 4 kB / 411.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2752, allocations: 0 / 411.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008658/0.276, allocations: 0.5932 MB / 411.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2761, allocations: 4 kB / 411.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.2762, allocations: 31.98 kB / 411.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001711/0.2764, allocations: 72.94 kB / 412 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.2764, allocations: 11.94 kB / 412 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004695/0.2769, allocations: 0.6225 MB / 412.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2769, allocations: 0 / 412.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006222/0.2776, allocations: 420.4 kB / 413 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.243e-05/0.2777, allocations: 108.9 kB / 413.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.044e-05/0.2777, allocations: 4 kB / 413.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.2779, allocations: 23.98 kB / 413.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.105e-05/0.278, allocations: 27.95 kB / 413.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.278, allocations: 4 kB / 413.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.2781, allocations: 148.5 kB / 413.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2781, allocations: 0 / 413.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.2785, allocations: 63.94 kB / 413.4 MB, free: 12.32 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 (14): * Single equations (assignments): 13 * 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.0001957/0.2787, allocations: 135.4 kB / 413.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.2792, allocations: 199.8 kB / 413.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2792, allocations: 0 / 413.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.2794, allocations: 103.9 kB / 413.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.2798, allocations: 31.98 kB / 413.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2811, allocations: 0.6939 MB / 414.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.2815, allocations: 0.744 MB / 415.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.232e-05/0.2815, allocations: 15.44 kB / 415.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2815, allocations: 0 / 415.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of Templates: time 0.006089/0.2876, allocations: 3.486 MB / 418.8 MB, free: 6.852 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches