Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001242, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.00112, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.59 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1005, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003455/0.104, allocations: 2.272 MB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1054, allocations: 0.8762 MB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1055, allocations: 0 / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.1058, allocations: 47.52 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.1061, allocations: 115.2 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1063, allocations: 83.83 kB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003449/0.1067, allocations: 299.3 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.1068, allocations: 64.19 kB / 362.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.1071, allocations: 123.6 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.1073, allocations: 131.5 kB / 362.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.11e-05/0.1073, allocations: 28 kB / 362.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.1075, allocations: 83.91 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-05/0.1076, allocations: 55.77 kB / 363.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1077, allocations: 119.4 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.1081, allocations: 311 kB / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1081, allocations: 0 / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1081, allocations: 0 / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.1081, allocations: 3.984 kB / 363.5 MB, free: 8.734 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001056/0.1092, allocations: 0.5938 MB / 364.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1092, allocations: 11.97 kB / 364.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001682/0.1094, allocations: 28.66 kB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.1098, allocations: 253.5 kB / 364.4 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.1098, allocations: 16.38 kB / 364.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.1099, allocations: 20.36 kB / 364.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.1104, allocations: 235.3 kB / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1104, allocations: 0 / 364.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.1105, allocations: 8 kB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1105, allocations: 4 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004687/0.111, allocations: 183.8 kB / 364.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009513/0.1119, allocations: 0.6409 MB / 365.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.1125, allocations: 202.4 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.1127, allocations: 108.7 kB / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.1127, allocations: 4 kB / 365.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.1131, allocations: 160.3 kB / 365.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/0.1131, allocations: 0 / 365.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002483/0.1156, allocations: 1.17 MB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.1156, allocations: 59.41 kB / 367.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.1159, allocations: 199.1 kB / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.116, allocations: 33.69 kB / 367.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.1161, allocations: 128.4 kB / 367.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.1162, allocations: 90.73 kB / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1163, allocations: 61.69 kB / 367.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1164, allocations: 334.8 kB / 368 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.1167, allocations: 95.94 kB / 368.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.117, allocations: 140.4 kB / 368.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004571/0.1174, allocations: 257.9 kB / 368.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1175, allocations: 0 / 368.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000853/0.1183, allocations: 381.6 kB / 368.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.1184, allocations: 33.7 kB / 368.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1184, allocations: 0 / 368.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/0.1186, allocations: 68.69 kB / 368.9 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.1188, allocations: 47.91 kB / 369 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.1206, allocations: 1.802 MB / 370.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.1209, allocations: 36.06 kB / 370.8 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.1209, allocations: 15.98 kB / 370.8 MB, free: 0.8398 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: 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 (31): * Single equations (assignments): 29 * 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.0001693/0.1211, allocations: 145.7 kB / 371 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.1211, allocations: 19.81 kB / 371 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.941e-05/0.1212, allocations: 30.55 kB / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1212, allocations: 0 / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1212, allocations: 7.938 kB / 371 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1212, allocations: 4 kB / 371 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1945/0.3158, allocations: 0.6824 MB / 371.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.3158, allocations: 0 / 371.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.3161, allocations: 43.48 kB / 371.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002108/0.3164, allocations: 53.23 kB / 371.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.622e-05/0.3164, allocations: 6.453 kB / 371.8 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.3182, allocations: 1.648 MB / 373.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3182, allocations: 0 / 373.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.3195, allocations: 0.5048 MB / 374 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3197, allocations: 113.3 kB / 374.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.3197, allocations: 8.703 kB / 374.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.3201, allocations: 31.84 kB / 374.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.3203, allocations: 72.23 kB / 374.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.3204, allocations: 15.08 kB / 374.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.3206, allocations: 145 kB / 374.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3206, allocations: 0 / 374.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000559/0.3212, allocations: 77.88 kB / 374.4 MB, free: 18.39 MB / 302.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 (21): * Single equations (assignments): 18 * 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.001145/0.3223, allocations: 373.7 kB / 374.8 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.3234, allocations: 454.5 kB / 375.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3234, allocations: 0 / 375.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.324, allocations: 264.1 kB / 375.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.3247, allocations: 45.88 kB / 375.5 MB, free: 17.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.3262, allocations: 0.6635 MB / 376.2 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.3265, allocations: 0.7506 MB / 377 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001761/0.3267, allocations: 32.22 kB / 377 MB, free: 16.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3268, allocations: 26.08 kB / 377 MB, free: 16.92 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3268, allocations: 1.25 kB / 377 MB, free: 16.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01252/0.3393, allocations: 4.542 MB / 381.6 MB, free: 16.61 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches