Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 73.88 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 147.8 kB / 24.49 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] 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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 50.86 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09593, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003406/0.09934, allocations: 2.089 MB / 373.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.1006, allocations: 0.6661 MB / 374.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1007, allocations: 4 kB / 374.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.1009, allocations: 35.66 kB / 374.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1011, allocations: 71.47 kB / 374.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.1014, allocations: 107.8 kB / 374.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.1018, allocations: 279.5 kB / 374.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1019, allocations: 40.52 kB / 374.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.1021, allocations: 119.5 kB / 375 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1023, allocations: 123.5 kB / 375.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.1023, allocations: 20 kB / 375.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.1025, allocations: 71.95 kB / 375.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.1026, allocations: 51.83 kB / 375.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.1027, allocations: 91.58 kB / 375.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.103, allocations: 290.8 kB / 375.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1031, allocations: 0 / 375.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1031, allocations: 0 / 375.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1031, allocations: 0 / 375.6 MB, free: 3.297 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001027/0.1041, allocations: 0.491 MB / 376.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1041, allocations: 8.031 kB / 376.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.1042, allocations: 28.75 kB / 376.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.1045, allocations: 186.1 kB / 376.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.1045, allocations: 12.38 kB / 376.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.1046, allocations: 20.38 kB / 376.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005061/0.1051, allocations: 239.4 kB / 376.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1051, allocations: 3.953 kB / 376.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1051, allocations: 12 kB / 376.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1051, allocations: 4 kB / 376.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005033/0.1056, allocations: 187.9 kB / 376.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.1066, allocations: 0.5625 MB / 377.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005859/0.1072, allocations: 186.5 kB / 377.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.1075, allocations: 96.73 kB / 377.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1075, allocations: 4 kB / 377.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.1079, allocations: 159.5 kB / 377.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.1079, allocations: 0 / 377.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002454/0.1103, allocations: 0.9308 MB / 378.7 MB, free: 0 / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.1104, allocations: 51.41 kB / 378.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.1106, allocations: 196 kB / 378.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.1106, allocations: 37.64 kB / 379 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.711e-05/0.1107, allocations: 132.5 kB / 379.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.899e-05/0.1108, allocations: 95.22 kB / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.1109, allocations: 61.69 kB / 379.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.111, allocations: 330.8 kB / 379.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.1113, allocations: 141.7 kB / 379.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.1117, allocations: 181.9 kB / 379.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005232/0.1122, allocations: 251.7 kB / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1122, allocations: 0 / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008955/0.1131, allocations: 430.6 kB / 380.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.1131, allocations: 33.7 kB / 380.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1131, allocations: 0 / 380.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/0.1134, allocations: 72.75 kB / 380.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.1136, allocations: 51.91 kB / 380.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000556/0.1142, allocations: 0.6149 MB / 381.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.1144, allocations: 36.05 kB / 381.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.1145, allocations: 12 kB / 381.4 MB, free: 13.17 MB / 350.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 (32): * Single equations (assignments): 30 * 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.000147/0.1146, allocations: 141.8 kB / 381.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.381e-05/0.1147, allocations: 23.91 kB / 381.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.976e-05/0.1147, allocations: 25.95 kB / 381.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1147, allocations: 0 / 381.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1147, allocations: 0 / 381.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1147, allocations: 4 kB / 381.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.1158, allocations: 0.5894 MB / 382.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1158, allocations: 0 / 382.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.1161, allocations: 39.91 kB / 382.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.1162, allocations: 68.81 kB / 382.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1162, allocations: 4 kB / 382.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000493/0.1167, allocations: 0.6148 MB / 382.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1167, allocations: 0 / 382.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1178, allocations: 0.5088 MB / 383.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.053e-05/0.1179, allocations: 43.81 kB / 383.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.1179, allocations: 4 kB / 383.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.1182, allocations: 32.03 kB / 383.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.505e-05/0.1183, allocations: 31.94 kB / 383.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.1183, allocations: 11.98 kB / 383.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.1184, allocations: 147.4 kB / 383.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1184, allocations: 0 / 383.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003459/0.1188, allocations: 68 kB / 383.7 MB, free: 10.72 MB / 350.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 (20): * Single equations (assignments): 17 * 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.0001966/0.119, allocations: 131.3 kB / 383.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007749/0.1197, allocations: 336.9 kB / 384.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1197, allocations: 0 / 384.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.1201, allocations: 139.8 kB / 384.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.1205, allocations: 46.69 kB / 384.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.1218, allocations: 0.6479 MB / 385 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.1219, allocations: 133.6 kB / 385.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.979e-05/0.122, allocations: 21.94 kB / 385.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.1221, allocations: 20.5 kB / 385.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1221, allocations: 0 / 385.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of Templates: time 0.008005/0.1301, allocations: 3.621 MB / 388.8 MB, free: 5.613 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4316877189558]