Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 114.7 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 205.8 kB / 18.92 MB, free: 4.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 247.1 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001877, allocations: 68.19 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004133/0.1143, allocations: 2.368 MB / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1159, allocations: 0.8374 MB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.1161, allocations: 4 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.1164, allocations: 47.75 kB / 360.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.1167, allocations: 91.45 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.1169, allocations: 71.86 kB / 361.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.1173, allocations: 279.3 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.1175, allocations: 72.28 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.1177, allocations: 127.5 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.1179, allocations: 127.5 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.118, allocations: 24 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.1181, allocations: 71.98 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.1182, allocations: 59.81 kB / 361.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1184, allocations: 115.4 kB / 361.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.1187, allocations: 227.8 kB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.1187, allocations: 4 kB / 362.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1187, allocations: 3.938 kB / 362.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1187, allocations: 0 / 362.2 MB, free: 9.848 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.000958/0.1197, allocations: 0.5341 MB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1197, allocations: 16.03 kB / 362.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.1199, allocations: 28.66 kB / 362.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.1203, allocations: 255.8 kB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.1203, allocations: 12.75 kB / 363 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.1204, allocations: 20.38 kB / 363 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.1208, allocations: 215 kB / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1208, allocations: 0 / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.1209, allocations: 4 kB / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1209, allocations: 8 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.1212, allocations: 163 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.1225, allocations: 0.774 MB / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.1229, allocations: 153.4 kB / 364.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.1231, allocations: 72.83 kB / 364.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.1231, allocations: 3.984 kB / 364.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.1232, allocations: 38.56 kB / 364.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.1232, allocations: 4 kB / 364.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002038/0.1252, allocations: 0.9864 MB / 365.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.1253, allocations: 55.41 kB / 365.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.1256, allocations: 218.8 kB / 365.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.1256, allocations: 33.7 kB / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1257, allocations: 140.2 kB / 365.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.57e-05/0.1258, allocations: 70.94 kB / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.292e-05/0.1259, allocations: 57.61 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1261, allocations: 334.8 kB / 366.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1263, allocations: 71.91 kB / 366.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.1264, allocations: 107.3 kB / 366.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.1267, allocations: 157.1 kB / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1268, allocations: 0 / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000495/0.1273, allocations: 270 kB / 366.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1273, allocations: 7.125 kB / 366.9 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1273, allocations: 4 kB / 366.9 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.1275, allocations: 64.86 kB / 367 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.1277, allocations: 47.91 kB / 367 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.1299, allocations: 1.807 MB / 368.9 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.1301, allocations: 28.06 kB / 368.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.1301, allocations: 12 kB / 368.9 MB, free: 2.613 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.0001879/0.1303, allocations: 137.7 kB / 369 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.444e-05/0.1304, allocations: 23.66 kB / 369 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.1305, allocations: 29.86 kB / 369.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1305, allocations: 4 kB / 369.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1305, allocations: 0 / 369.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1305, allocations: 0 / 369.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000953/0.1315, allocations: 0.6024 MB / 369.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1315, allocations: 3.938 kB / 369.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.1316, allocations: 35.97 kB / 369.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.1318, allocations: 56.89 kB / 369.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.1319, allocations: 4 kB / 369.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1885/0.3204, allocations: 1.656 MB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3205, allocations: 1.188 kB / 371.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008372/0.3213, allocations: 423.4 kB / 371.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.3214, allocations: 110.6 kB / 372 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.3215, allocations: 12.75 kB / 372 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3217, allocations: 24.91 kB / 372 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3219, allocations: 66.05 kB / 372.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.3219, allocations: 5.672 kB / 372.1 MB, free: 19.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000176/0.3221, allocations: 161.8 kB / 372.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3221, allocations: 0.5469 kB / 372.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004495/0.3226, allocations: 73.89 kB / 372.3 MB, free: 19.75 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.001308/0.3239, allocations: 359.8 kB / 372.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007669/0.3246, allocations: 320.5 kB / 373 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3247, allocations: 0.9688 kB / 373 MB, free: 19.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.325, allocations: 227 kB / 373.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.3255, allocations: 57.89 kB / 373.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.3269, allocations: 0.797 MB / 374 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.3272, allocations: 0.7419 MB / 374.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.442e-05/0.3273, allocations: 24.11 kB / 374.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3273, allocations: 4 kB / 374.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of Templates: time 0.00812/0.3354, allocations: 4 MB / 378.8 MB, free: 17.8 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches