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.0007662/0.0007662, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.0008365/0.0008366, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.108/1.108, allocations: 223.3 MB / 242.2 MB, free: 256 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001995/0.0001996, allocations: 11.94 kB / 302.1 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06963/0.06984, allocations: 50.41 MB / 352.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.001847/0.0717, allocations: 1.899 MB / 354.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009624/0.07268, allocations: 0.6818 MB / 355.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.073e-05/0.07278, allocations: 15.88 kB / 355.1 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.07291, allocations: 19.84 kB / 355.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.07305, allocations: 59.61 kB / 355.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.07329, allocations: 79.84 kB / 355.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002195/0.07352, allocations: 251.4 kB / 355.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.07364, allocations: 52.23 kB / 355.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.07378, allocations: 95.62 kB / 355.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.07393, allocations: 111.5 kB / 355.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.07397, allocations: 8 kB / 355.7 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.07408, allocations: 59.91 kB / 355.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.07414, allocations: 39.83 kB / 355.8 MB, free: 352 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.434e-05/0.07424, allocations: 129.2 kB / 356 MB, free: 216 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.07442, allocations: 187.8 kB / 356.2 MB, free: 28 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.07442, allocations: 0 / 356.2 MB, free: 28 kB / 286.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.07443, allocations: 0 / 356.2 MB, free: 28 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.07444, allocations: 4 kB / 356.2 MB, free: 24 kB / 286.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.000601/0.07505, allocations: 487.2 kB / 356.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.696e-05/0.07508, allocations: 8.031 kB / 356.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.07514, allocations: 24.66 kB / 356.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.07534, allocations: 243.8 kB / 356.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.07537, allocations: 16.75 kB / 356.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.07541, allocations: 24.38 kB / 356.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.07576, allocations: 222 kB / 357.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.07578, allocations: 0 / 357.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.07581, allocations: 12 kB / 357.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.07582, allocations: 7.938 kB / 357.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.07612, allocations: 169 kB / 357.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009186/0.07705, allocations: 0.7914 MB / 358.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.07734, allocations: 130.5 kB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.07747, allocations: 68.83 kB / 358.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.07749, allocations: 320 / 358.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.07752, allocations: 38.56 kB / 358.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 9.02e-07/0.07752, allocations: 4 kB / 358.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001601/0.07913, allocations: 1.019 MB / 359.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.07917, allocations: 55.41 kB / 359.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.07934, allocations: 207.2 kB / 359.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.07937, allocations: 29.7 kB / 359.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.07945, allocations: 144.1 kB / 359.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.623e-05/0.0795, allocations: 71.03 kB / 359.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.07954, allocations: 29.7 kB / 359.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.07964, allocations: 342.7 kB / 360.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.07979, allocations: 75.97 kB / 360.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.07995, allocations: 115.6 kB / 360.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.08021, allocations: 177.7 kB / 360.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.08022, allocations: 0 / 360.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004281/0.08065, allocations: 288.5 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.08067, allocations: 4 kB / 360.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.08068, allocations: 8.062 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/0.08089, allocations: 68.81 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.08103, allocations: 39.92 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000398/0.08144, allocations: 0.6225 MB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.08163, allocations: 32.08 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.08165, allocations: 11.92 kB / 361.7 MB, free: 10.1 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 (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.0001045/0.08176, allocations: 138.3 kB / 361.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.0818, allocations: 15.81 kB / 361.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.938e-05/0.08185, allocations: 25.91 kB / 361.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.08187, allocations: 15.94 kB / 361.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.08188, allocations: 3.984 kB / 361.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.08188, allocations: 3.938 kB / 361.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/0.08259, allocations: 0.6009 MB / 362.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.08261, allocations: 4.062 kB / 362.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.08275, allocations: 31.92 kB / 362.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.0829, allocations: 72.88 kB / 362.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.08293, allocations: 4 kB / 362.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003692/0.0833, allocations: 0.6186 MB / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.08331, allocations: 32 / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.08384, allocations: 425.6 kB / 363.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.08393, allocations: 108.9 kB / 363.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.08396, allocations: 4 kB / 363.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.08414, allocations: 27.97 kB / 363.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.0842, allocations: 23.91 kB / 363.8 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.08422, allocations: 7.984 kB / 363.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001082/0.08433, allocations: 152.5 kB / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.08434, allocations: 0 / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.08463, allocations: 71.94 kB / 364 MB, free: 7.625 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 (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.0001269/0.08476, allocations: 127.2 kB / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.08517, allocations: 211.8 kB / 364.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.08518, allocations: 0 / 364.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.08539, allocations: 95.89 kB / 364.4 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.08573, allocations: 34.56 kB / 364.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.08687, allocations: 0.8823 MB / 365.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.08711, allocations: 0.7365 MB / 366.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.08717, allocations: 23.42 kB / 366.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.08717, allocations: 0 / 366.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of Templates: time 0.004517/0.0917, allocations: 3.405 MB / 369.5 MB, free: 2.051 MB / 302.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