Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 106.3 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007823/0.0007823, allocations: 35.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2436, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002592/0.2462, allocations: 2.263 MB / 401.7 MB, free: 31.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008046/0.2471, allocations: 0.6933 MB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.67e-05/0.2472, allocations: 3.938 kB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.2473, allocations: 23.84 kB / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.2474, allocations: 56.77 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.2477, allocations: 79.91 kB / 402.6 MB, free: 30.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.2479, allocations: 251.4 kB / 402.8 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.248, allocations: 60.2 kB / 402.9 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.2481, allocations: 99.64 kB / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.2482, allocations: 111.5 kB / 403.1 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.2483, allocations: 12 kB / 403.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2484, allocations: 63.89 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.2485, allocations: 47.83 kB / 403.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.857e-05/0.2485, allocations: 95.47 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.2488, allocations: 264.6 kB / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2488, allocations: 0 / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.2488, allocations: 0 / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.2488, allocations: 0 / 403.6 MB, free: 29.25 MB / 298.7 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.000592/0.2494, allocations: 0.5123 MB / 404.1 MB, free: 28.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.627e-05/0.2494, allocations: 12.03 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.2495, allocations: 24.66 kB / 404.1 MB, free: 28.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.2496, allocations: 239.8 kB / 404.4 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.2497, allocations: 16.81 kB / 404.4 MB, free: 28.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.2497, allocations: 28.28 kB / 404.4 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.25, allocations: 218 kB / 404.6 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.25, allocations: 4 kB / 404.6 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.2501, allocations: 4 kB / 404.6 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2501, allocations: 8 kB / 404.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002728/0.2504, allocations: 173 kB / 404.8 MB, free: 27.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008076/0.2512, allocations: 0.7719 MB / 405.6 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002769/0.2515, allocations: 134.5 kB / 405.7 MB, free: 26.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.2516, allocations: 72.83 kB / 405.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.2516, allocations: 0 / 405.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.412e-05/0.2516, allocations: 30.56 kB / 405.8 MB, free: 26.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.083e-06/0.2516, allocations: 0 / 405.8 MB, free: 26.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001449/0.2531, allocations: 0.996 MB / 406.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.162e-05/0.2531, allocations: 63.28 kB / 406.9 MB, free: 25.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.2533, allocations: 208.1 kB / 407.1 MB, free: 25.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2533, allocations: 25.7 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.588e-05/0.2534, allocations: 144.2 kB / 407.2 MB, free: 25.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.2534, allocations: 67 kB / 407.3 MB, free: 25.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.967e-05/0.2535, allocations: 61.59 kB / 407.3 MB, free: 25.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.129e-05/0.2535, allocations: 330.8 kB / 407.7 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.2537, allocations: 83.95 kB / 407.8 MB, free: 24.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2538, allocations: 111.6 kB / 407.9 MB, free: 24.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.254, allocations: 166.4 kB / 408 MB, free: 24.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.254, allocations: 0 / 408 MB, free: 24.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003892/0.2544, allocations: 288.5 kB / 408.3 MB, free: 24.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2545, allocations: 8 kB / 408.3 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2545, allocations: 0 / 408.3 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002281/0.2547, allocations: 64.83 kB / 408.4 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.2549, allocations: 47.84 kB / 408.4 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000318/0.2552, allocations: 0.6227 MB / 409 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.2554, allocations: 23.97 kB / 409.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.2554, allocations: 11.98 kB / 409.1 MB, free: 23.33 MB / 298.7 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 8.106e-05/0.2555, allocations: 130.4 kB / 409.2 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.916e-05/0.2555, allocations: 19.86 kB / 409.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.2556, allocations: 33.91 kB / 409.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2556, allocations: 3.938 kB / 409.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2556, allocations: 3.938 kB / 409.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.2556, allocations: 0 / 409.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006844/0.2563, allocations: 0.5971 MB / 409.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.2563, allocations: 4.062 kB / 409.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.2565, allocations: 35.91 kB / 409.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.2566, allocations: 68.81 kB / 410 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.2566, allocations: 7.984 kB / 410 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002785/0.2569, allocations: 0.6109 MB / 410.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2569, allocations: 8 kB / 410.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004427/0.2614, allocations: 4.036 MB / 414.6 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.2615, allocations: 104.9 kB / 414.7 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.2615, allocations: 8 kB / 414.7 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.2617, allocations: 23.97 kB / 414.8 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.2617, allocations: 24 kB / 414.8 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2618, allocations: 11.94 kB / 414.8 MB, free: 17.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.687e-05/0.2619, allocations: 147.2 kB / 414.9 MB, free: 17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2619, allocations: 0 / 414.9 MB, free: 17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004281/0.2623, allocations: 112.1 kB / 415.1 MB, free: 16.89 MB / 298.7 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.0001824/0.2625, allocations: 143.3 kB / 415.2 MB, free: 16.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.2629, allocations: 215.6 kB / 415.4 MB, free: 16.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2629, allocations: 4 kB / 415.4 MB, free: 16.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.2631, allocations: 92.14 kB / 415.5 MB, free: 16.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.2635, allocations: 35.98 kB / 415.5 MB, free: 16.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.2647, allocations: 1.051 MB / 416.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.2649, allocations: 0.7482 MB / 417.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.835e-05/0.265, allocations: 13.95 kB / 417.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.265, allocations: 23.44 kB / 417.4 MB, free: 14.48 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.265, allocations: 0 / 417.4 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Templates: time 0.005971/0.271, allocations: 3.929 MB / 421.3 MB, free: 10.58 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches