Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001661/0.001661, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001946/0.001946, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 225.1 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 43.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.08109, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003372/0.0845, allocations: 2.212 MB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.08574, allocations: 0.7255 MB / 331.7 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.08586, allocations: 4 kB / 331.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.08605, allocations: 31.66 kB / 331.7 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.08621, allocations: 67.47 kB / 331.8 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.08652, allocations: 103.8 kB / 331.9 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.08682, allocations: 259.4 kB / 332.1 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.08698, allocations: 76.3 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.08715, allocations: 111.6 kB / 332.3 MB, free: 140 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.08735, allocations: 119.5 kB / 332.4 MB, free: 20 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.08739, allocations: 20 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.08756, allocations: 63.95 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.807e-05/0.08765, allocations: 55.81 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.08776, allocations: 107.5 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.08809, allocations: 279 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.08811, allocations: 0 / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.08812, allocations: 4 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.08813, allocations: 0 / 332.9 MB, free: 15.5 MB / 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.0008499/0.08898, allocations: 0.5069 MB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.08903, allocations: 8.031 kB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.512e-05/0.0891, allocations: 24.66 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.08945, allocations: 239.9 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.08949, allocations: 16.81 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.938e-05/0.08955, allocations: 24.28 kB / 333.7 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.08995, allocations: 233.9 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.08998, allocations: 0 / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.09001, allocations: 12 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.09003, allocations: 4 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/0.09035, allocations: 157 kB / 334.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.09145, allocations: 0.7758 MB / 334.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.0918, allocations: 142.4 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.09196, allocations: 68.83 kB / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.09199, allocations: 0 / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.09203, allocations: 42.56 kB / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 1.092e-06/0.09203, allocations: 0 / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001789/0.09383, allocations: 0.9779 MB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.09388, allocations: 51.41 kB / 336.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.0941, allocations: 206.6 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.09413, allocations: 33.7 kB / 336.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.09424, allocations: 136.2 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.0943, allocations: 74.98 kB / 336.6 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/0.09439, allocations: 57.61 kB / 336.7 MB, free: 11.4 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.09452, allocations: 334.8 kB / 337 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.09468, allocations: 75.97 kB / 337.1 MB, free: 10.99 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.09485, allocations: 123.5 kB / 337.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.09514, allocations: 168.8 kB / 337.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.09515, allocations: 7.938 kB / 337.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000476/0.09563, allocations: 283.8 kB / 337.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.09565, allocations: 4 kB / 337.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.09566, allocations: 0 / 337.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/0.0959, allocations: 76.86 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.09606, allocations: 43.92 kB / 337.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004832/0.09655, allocations: 0.6147 MB / 338.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.09674, allocations: 20.02 kB / 338.4 MB, free: 9.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.09677, allocations: 15.98 kB / 338.4 MB, free: 9.586 MB / 286.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.0001238/0.0969, allocations: 137.8 kB / 338.6 MB, free: 9.441 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.09696, allocations: 19.81 kB / 338.6 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.09702, allocations: 25.81 kB / 338.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.09703, allocations: 3.938 kB / 338.6 MB, free: 9.391 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.09704, allocations: 7.984 kB / 338.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.09705, allocations: 0 / 338.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008357/0.09789, allocations: 0.6053 MB / 339.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.0979, allocations: 0 / 339.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.09807, allocations: 27.98 kB / 339.3 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.09825, allocations: 76.73 kB / 339.3 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.09828, allocations: 4 kB / 339.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004361/0.09872, allocations: 0.6149 MB / 339.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.09873, allocations: 0 / 339.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005813/0.09932, allocations: 418 kB / 340.4 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.09942, allocations: 108.9 kB / 340.5 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.865e-05/0.09947, allocations: 8 kB / 340.5 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.09965, allocations: 23.91 kB / 340.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.09973, allocations: 19.97 kB / 340.5 MB, free: 7.355 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.09976, allocations: 8 kB / 340.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.09989, allocations: 158.9 kB / 340.7 MB, free: 7.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.0999, allocations: 4 kB / 340.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.1002, allocations: 63.94 kB / 340.7 MB, free: 7.125 MB / 286.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.0001667/0.1004, allocations: 119.3 kB / 340.9 MB, free: 7 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004832/0.1009, allocations: 207.7 kB / 341.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.1009, allocations: 0 / 341.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.1011, allocations: 108.1 kB / 341.2 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.1015, allocations: 39.97 kB / 341.2 MB, free: 6.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.1027, allocations: 0.6491 MB / 341.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.103, allocations: 0.7517 MB / 342.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.514e-05/0.1031, allocations: 17.95 kB / 342.6 MB, free: 5.176 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.1031, allocations: 19.44 kB / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1032, allocations: 0 / 342.6 MB, free: 5.156 MB / 286.1 MB Notification: Performance of Templates: time 0.006497/0.1097, allocations: 3.179 MB / 345.8 MB, free: 1.98 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches