Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 170.7 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 3.938 kB / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.852e-05, allocations: 6.891 kB / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003606/0.003635, allocations: 2.245 MB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.005401, allocations: 0.8185 MB / 328.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.005534, allocations: 3.656 kB / 328.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.005814, allocations: 58.33 kB / 328.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003171/0.006131, allocations: 110.9 kB / 328.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.006375, allocations: 86.7 kB / 328.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.006732, allocations: 290.8 kB / 328.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.006882, allocations: 50.62 kB / 328.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.007191, allocations: 171.3 kB / 328.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.007413, allocations: 100.3 kB / 329 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.007465, allocations: 20.25 kB / 329 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.007634, allocations: 82.34 kB / 329.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.007722, allocations: 53.09 kB / 329.1 MB, free: 14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.00783, allocations: 80.7 kB / 329.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.008322, allocations: 316.9 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.008325, allocations: 0 / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.008326, allocations: 0 / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.008338, allocations: 1.156 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009585/0.009296, allocations: 485.6 kB / 330 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.009334, allocations: 9.188 kB / 330 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.009517, allocations: 33.16 kB / 330 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.009889, allocations: 194.6 kB / 330.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.009914, allocations: 14 kB / 330.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.425e-05/0.009968, allocations: 20.77 kB / 330.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004494/0.01042, allocations: 216.4 kB / 330.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.01044, allocations: 10.17 kB / 330.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.01047, allocations: 5.906 kB / 330.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.01048, allocations: 9.469 kB / 330.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.01085, allocations: 151.9 kB / 330.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.01202, allocations: 0.6328 MB / 331.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.01243, allocations: 133.6 kB / 331.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.01258, allocations: 67.89 kB / 331.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.01261, allocations: 6.344 kB / 331.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.01264, allocations: 32.97 kB / 331.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.643e-06/0.01264, allocations: 3.938 kB / 331.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001953/0.01459, allocations: 0.7577 MB / 332.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.01465, allocations: 62.03 kB / 332.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.01489, allocations: 208.9 kB / 332.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.01492, allocations: 26.73 kB / 332.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.01504, allocations: 150.6 kB / 332.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-05/0.01512, allocations: 76.56 kB / 332.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.155e-05/0.01521, allocations: 51.56 kB / 332.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.01538, allocations: 327.1 kB / 333.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.01554, allocations: 72.84 kB / 333.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.01574, allocations: 109.2 kB / 333.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.01608, allocations: 161.3 kB / 333.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01608, allocations: 0 / 333.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000528/0.01661, allocations: 267 kB / 333.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.01663, allocations: 5.344 kB / 333.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.01664, allocations: 1.406 kB / 333.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/0.01687, allocations: 64.14 kB / 333.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.01702, allocations: 40.64 kB / 333.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/0.01919, allocations: 1.679 MB / 335.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.01939, allocations: 28.09 kB / 335.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.01941, allocations: 6.156 kB / 335.6 MB, free: 9.031 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 (25): * Single equations (assignments): 24 * 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.0001606/0.01958, allocations: 133 kB / 335.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.01963, allocations: 20.81 kB / 335.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.062e-05/0.0197, allocations: 26.48 kB / 335.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.0197, allocations: 3.438 kB / 335.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.0197, allocations: 0 / 335.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.01971, allocations: 4 kB / 335.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.0208, allocations: 0.5175 MB / 336.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.02081, allocations: 0 / 336.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.02099, allocations: 36.73 kB / 336.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001682/0.02116, allocations: 50.83 kB / 336.3 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.02118, allocations: 10.98 kB / 336.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/0.02317, allocations: 1.529 MB / 337.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.02317, allocations: 5.438 kB / 337.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007952/0.02397, allocations: 410.3 kB / 338.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.046e-05/0.02406, allocations: 36.02 kB / 338.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.0241, allocations: 11.31 kB / 338.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.02431, allocations: 27.28 kB / 338.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.0245, allocations: 70.17 kB / 338.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.02452, allocations: 8.953 kB / 338.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.02469, allocations: 144.7 kB / 338.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02469, allocations: 1.125 kB / 338.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.02515, allocations: 74.73 kB / 338.7 MB, free: 6.457 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 (15): * Single equations (assignments): 14 * 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.001487/0.02663, allocations: 393.7 kB / 339 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006702/0.0273, allocations: 308.4 kB / 339.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.02731, allocations: 4.125 kB / 339.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.02769, allocations: 219.5 kB / 339.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.02811, allocations: 40.58 kB / 339.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.02957, allocations: 0.5896 MB / 340.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.02975, allocations: 138.6 kB / 340.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001231/0.02988, allocations: 34.17 kB / 340.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.868e-05/0.02995, allocations: 23.17 kB / 340.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.02995, allocations: 1.875 kB / 340.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of Templates: time 0.009236/0.03918, allocations: 3.758 MB / 344.1 MB, free: 1.645 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.313319247215986]