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.00125/0.001249, allocations: 106.5 kB / 17.58 MB, free: 5.559 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.00132/0.00132, allocations: 192 kB / 18.51 MB, free: 4.641 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.468/1.468, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.00115/0.00115, allocations: 51.92 kB / 280.6 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004127/0.106, allocations: 2.205 MB / 329.5 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1075, allocations: 0.7216 MB / 330.2 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.1078, allocations: 7.938 kB / 330.2 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.108, allocations: 27.72 kB / 330.2 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/0.1082, allocations: 71.41 kB / 330.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003907/0.1086, allocations: 103.8 kB / 330.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.1089, allocations: 267.4 kB / 330.7 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1091, allocations: 68.31 kB / 330.7 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.1093, allocations: 107.6 kB / 330.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1095, allocations: 119.5 kB / 331 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.1095, allocations: 20 kB / 331 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1096, allocations: 63.95 kB / 331 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.041e-05/0.1097, allocations: 51.83 kB / 331.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.1098, allocations: 119.3 kB / 331.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.1102, allocations: 267.4 kB / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1102, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1102, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1102, allocations: 0 / 331.5 MB, free: 248 kB / 270.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.0008709/0.1111, allocations: 0.5147 MB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1111, allocations: 8.031 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.1112, allocations: 28.66 kB / 332 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002974/0.1115, allocations: 232 kB / 332.2 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.1115, allocations: 16.81 kB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.1116, allocations: 28.22 kB / 332.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.112, allocations: 222 kB / 332.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1121, allocations: 4 kB / 332.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1121, allocations: 8 kB / 332.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1121, allocations: 7.938 kB / 332.5 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.1124, allocations: 165 kB / 332.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.1136, allocations: 0.7797 MB / 333.5 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.114, allocations: 134.5 kB / 333.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1141, allocations: 72.83 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.1142, allocations: 0 / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.1142, allocations: 34.56 kB / 333.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 9.71e-07/0.1142, allocations: 0 / 333.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001909/0.1161, allocations: 0.9857 MB / 334.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.1162, allocations: 51.41 kB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.1164, allocations: 202.8 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.1164, allocations: 29.7 kB / 335 MB, free: 12.41 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.1165, allocations: 144.2 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.1166, allocations: 71 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.829e-05/0.1167, allocations: 53.61 kB / 335.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1168, allocations: 330.8 kB / 335.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.117, allocations: 87.89 kB / 335.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.1171, allocations: 115.6 kB / 335.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.1174, allocations: 168.7 kB / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1175, allocations: 0 / 335.9 MB, free: 11.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004761/0.1179, allocations: 287.8 kB / 336.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.118, allocations: 4 kB / 336.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.118, allocations: 0 / 336.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000259/0.1182, allocations: 68.81 kB / 336.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1184, allocations: 47.86 kB / 336.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000528/0.1189, allocations: 0.6187 MB / 336.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.1191, allocations: 24 kB / 337 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1192, allocations: 8 kB / 337 MB, free: 10.34 MB / 286.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.0001555/0.1193, allocations: 141 kB / 337.1 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.1194, allocations: 23.88 kB / 337.1 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.99e-05/0.1195, allocations: 25.91 kB / 337.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1195, allocations: 3.938 kB / 337.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1195, allocations: 8 kB / 337.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1195, allocations: 7.922 kB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008235/0.1203, allocations: 0.6021 MB / 337.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1203, allocations: 0 / 337.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.1205, allocations: 31.92 kB / 337.8 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.1207, allocations: 68.81 kB / 337.9 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1207, allocations: 4 kB / 337.9 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004578/0.1212, allocations: 0.6227 MB / 338.5 MB, free: 8.699 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1212, allocations: 4.031 kB / 338.5 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.1218, allocations: 414 kB / 338.9 MB, free: 8.266 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1219, allocations: 108.9 kB / 339 MB, free: 8.141 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.1219, allocations: 8 kB / 339 MB, free: 8.133 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.1221, allocations: 19.97 kB / 339 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-05/0.1222, allocations: 23.91 kB / 339.1 MB, free: 8.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.1222, allocations: 8 kB / 339.1 MB, free: 8.082 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.1224, allocations: 156 kB / 339.2 MB, free: 7.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1224, allocations: 0 / 339.2 MB, free: 7.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000336/0.1227, allocations: 71.94 kB / 339.3 MB, free: 7.859 MB / 286.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.0001945/0.1229, allocations: 119.2 kB / 339.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.1234, allocations: 211.6 kB / 339.6 MB, free: 7.527 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1235, allocations: 0 / 339.6 MB, free: 7.527 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002351/0.1237, allocations: 100.1 kB / 339.7 MB, free: 7.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.1241, allocations: 47.64 kB / 339.8 MB, free: 7.383 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.1255, allocations: 0.661 MB / 340.4 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.1258, allocations: 0.7478 MB / 341.2 MB, free: 5.918 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.793e-05/0.1259, allocations: 21.94 kB / 341.2 MB, free: 5.895 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.1259, allocations: 19.38 kB / 341.2 MB, free: 5.875 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1259, allocations: 0 / 341.2 MB, free: 5.875 MB / 286.1 MB Notification: Performance of Templates: time 0.007257/0.1332, allocations: 3.175 MB / 344.4 MB, free: 2.703 MB / 286.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/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