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.001154/0.001154, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.00102/0.00102, allocations: 189.2 kB / 19.33 MB, free: 3.781 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.467/1.467, allocations: 205.1 MB / 225.2 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.001408/0.001408, allocations: 43.94 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09829, allocations: 46.61 MB / 375.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004818/0.1032, allocations: 2.213 MB / 378 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.105, allocations: 0.7291 MB / 378.7 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.1053, allocations: 8 kB / 378.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.1055, allocations: 31.66 kB / 378.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002855/0.1058, allocations: 67.47 kB / 378.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004077/0.1062, allocations: 99.75 kB / 378.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.1066, allocations: 263.4 kB / 379.2 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.1068, allocations: 76.28 kB / 379.3 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.1071, allocations: 115.6 kB / 379.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.1073, allocations: 115.5 kB / 379.5 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.695e-05/0.1074, allocations: 20 kB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1076, allocations: 71.94 kB / 379.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.771e-05/0.1077, allocations: 51.83 kB / 379.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1078, allocations: 103.5 kB / 379.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.1082, allocations: 279 kB / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1082, allocations: 0 / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1082, allocations: 0 / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1082, allocations: 4 kB / 380 MB, free: 376 kB / 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.1837/0.2919, allocations: 0.5057 MB / 380.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.292, allocations: 11.23 kB / 380.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.2921, allocations: 24.06 kB / 380.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004025/0.2925, allocations: 238.8 kB / 380.8 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.2926, allocations: 13.72 kB / 380.8 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.584e-05/0.2926, allocations: 21.31 kB / 380.8 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.2931, allocations: 222 kB / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.2932, allocations: 5.172 kB / 381 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.2932, allocations: 12.7 kB / 381.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2932, allocations: 6.531 kB / 381.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003671/0.2936, allocations: 166.8 kB / 381.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.2948, allocations: 0.77 MB / 382 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003609/0.2952, allocations: 136.2 kB / 382.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.2953, allocations: 69.33 kB / 382.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2953, allocations: 2.25 kB / 382.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.2954, allocations: 40.11 kB / 382.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.452e-06/0.2954, allocations: 1.156 kB / 382.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001929/0.2973, allocations: 0.9832 MB / 383.2 MB, free: 11.76 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.64e-05/0.2974, allocations: 59.98 kB / 383.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.2976, allocations: 198.6 kB / 383.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2977, allocations: 31.97 kB / 383.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.369e-05/0.2977, allocations: 141.2 kB / 383.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.2978, allocations: 79.06 kB / 383.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.2979, allocations: 54.27 kB / 383.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.298, allocations: 337.4 kB / 384.1 MB, free: 11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.2982, allocations: 74.78 kB / 384.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.2984, allocations: 122.4 kB / 384.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.2987, allocations: 171.8 kB / 384.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2987, allocations: 0 / 384.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004918/0.2992, allocations: 283.2 kB / 384.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2992, allocations: 6.797 kB / 384.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2993, allocations: 3.984 kB / 384.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.2995, allocations: 72.97 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.2997, allocations: 40.78 kB / 384.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004052/0.3001, allocations: 0.6216 MB / 385.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.3003, allocations: 22.22 kB / 385.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3004, allocations: 11.34 kB / 385.5 MB, free: 10.08 MB / 318.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.0001113/0.3005, allocations: 133.7 kB / 385.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.3005, allocations: 22.19 kB / 385.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.3006, allocations: 28 kB / 385.7 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3006, allocations: 8.406 kB / 385.7 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3006, allocations: 9.297 kB / 385.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3006, allocations: 0 / 385.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007984/0.3014, allocations: 0.5937 MB / 386.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3014, allocations: 0 / 386.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3016, allocations: 33.09 kB / 386.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000177/0.3018, allocations: 70.44 kB / 386.4 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.3018, allocations: 6.594 kB / 386.4 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003462/0.3022, allocations: 0.612 MB / 387 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3022, allocations: 5.766 kB / 387 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005723/0.3028, allocations: 424.9 kB / 387.5 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.3029, allocations: 107.8 kB / 387.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.3029, allocations: 7.703 kB / 387.6 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.3031, allocations: 24.56 kB / 387.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.3032, allocations: 23.64 kB / 387.6 MB, free: 8.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.3032, allocations: 6.531 kB / 387.6 MB, free: 8.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.3034, allocations: 151.8 kB / 387.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3034, allocations: 3.938 kB / 387.8 MB, free: 8.391 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.3037, allocations: 64.45 kB / 387.8 MB, free: 8.383 MB / 318.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.0001876/0.3039, allocations: 118 kB / 387.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005145/0.3045, allocations: 215.8 kB / 388.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3045, allocations: 0 / 388.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.3047, allocations: 95.45 kB / 388.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.3052, allocations: 37.19 kB / 388.3 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.3064, allocations: 0.6859 MB / 389 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.3066, allocations: 0.7396 MB / 389.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.865e-05/0.3067, allocations: 19.8 kB / 389.7 MB, free: 7.023 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3067, allocations: 0 / 389.7 MB, free: 7.023 MB / 318.1 MB Notification: Performance of Templates: time 0.00831/0.315, allocations: 3.48 MB / 393.2 MB, free: 6.695 MB / 318.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 -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