Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009583/0.0009585, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008688/0.0008688, allocations: 79.88 kB / 271.2 MB, free: 8.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003252, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.246, allocations: 47.58 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002195/0.2483, allocations: 1.808 MB / 376.9 MB, free: 44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2495, allocations: 0.6938 MB / 377.6 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.2497, allocations: 9.844 kB / 377.6 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.2499, allocations: 24.12 kB / 377.6 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.2501, allocations: 58.31 kB / 377.7 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.2505, allocations: 81.25 kB / 377.8 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.2508, allocations: 240.5 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.251, allocations: 51.92 kB / 378 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.2512, allocations: 97.47 kB / 378.1 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.2514, allocations: 118.8 kB / 378.3 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.2515, allocations: 11.38 kB / 378.3 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.2516, allocations: 51.84 kB / 378.3 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.308e-05/0.2517, allocations: 43.66 kB / 378.4 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.2518, allocations: 121.9 kB / 378.5 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.2521, allocations: 193.8 kB / 378.7 MB, free: 42.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2521, allocations: 0 / 378.7 MB, free: 42.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2521, allocations: 1.25 kB / 378.7 MB, free: 42.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.2521, allocations: 0 / 378.7 MB, free: 42.72 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009117/0.253, allocations: 0.5396 MB / 379.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2531, allocations: 12.88 kB / 379.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.105e-05/0.2532, allocations: 24.91 kB / 379.2 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.2534, allocations: 235.5 kB / 379.5 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.2535, allocations: 17.23 kB / 379.5 MB, free: 41.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.2535, allocations: 25 kB / 379.5 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.254, allocations: 238.5 kB / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.254, allocations: 0 / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.254, allocations: 6.969 kB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.254, allocations: 8.172 kB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004664/0.2545, allocations: 214.6 kB / 380 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009227/0.2554, allocations: 0.6761 MB / 380.7 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005473/0.256, allocations: 212.5 kB / 380.9 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.2562, allocations: 115.4 kB / 381 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2563, allocations: 2.656 kB / 381 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003651/0.2567, allocations: 166.1 kB / 381.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.2567, allocations: 0 / 381.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.002311/0.259, allocations: 1.221 MB / 382.4 MB, free: 39.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.259, allocations: 55.41 kB / 382.4 MB, free: 39.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.2592, allocations: 192.4 kB / 382.6 MB, free: 39.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.2592, allocations: 32.11 kB / 382.6 MB, free: 39.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.2593, allocations: 136.7 kB / 382.8 MB, free: 39.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.2593, allocations: 86.08 kB / 382.8 MB, free: 39.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.2594, allocations: 14.66 kB / 382.9 MB, free: 39.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.143e-05/0.2594, allocations: 338.6 kB / 383.2 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.2597, allocations: 107 kB / 383.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.26, allocations: 156.5 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.2605, allocations: 257.8 kB / 383.7 MB, free: 38.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2605, allocations: 0 / 383.7 MB, free: 38.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008224/0.2613, allocations: 419.5 kB / 384.1 MB, free: 38.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.2613, allocations: 35.33 kB / 384.1 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.2614, allocations: 1.078 kB / 384.1 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.2616, allocations: 72.39 kB / 384.2 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.2618, allocations: 60.28 kB / 384.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003677/0.2622, allocations: 0.6154 MB / 384.9 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.2624, allocations: 50.92 kB / 384.9 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.2625, allocations: 12.69 kB / 385 MB, free: 37.89 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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.2626, allocations: 141.3 kB / 385.1 MB, free: 37.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.2626, allocations: 17.62 kB / 385.1 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.2627, allocations: 29.67 kB / 385.1 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2627, allocations: 2.562 kB / 385.1 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2627, allocations: 0.8125 kB / 385.1 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2627, allocations: 0 / 385.1 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000964/0.2637, allocations: 0.6923 MB / 385.8 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2637, allocations: 0 / 385.8 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.2639, allocations: 45.53 kB / 385.9 MB, free: 37.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.2641, allocations: 69.84 kB / 385.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.2641, allocations: 6.156 kB / 386 MB, free: 37.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003203/0.2644, allocations: 0.6087 MB / 386.6 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2644, allocations: 8.906 kB / 386.6 MB, free: 36.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009204/0.2654, allocations: 0.5206 MB / 387.1 MB, free: 36.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.702e-05/0.2655, allocations: 112.9 kB / 387.2 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.2655, allocations: 8 kB / 387.2 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.2657, allocations: 35.97 kB / 387.2 MB, free: 35.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/0.2658, allocations: 35.94 kB / 387.3 MB, free: 35.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.2658, allocations: 11.98 kB / 387.3 MB, free: 35.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.139e-05/0.2659, allocations: 131.5 kB / 387.4 MB, free: 35.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2659, allocations: 3.938 kB / 387.4 MB, free: 35.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003051/0.2663, allocations: 79.98 kB / 387.5 MB, free: 35.73 MB / 298.7 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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001509/0.2664, allocations: 115.3 kB / 387.6 MB, free: 35.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006358/0.2671, allocations: 352.6 kB / 388 MB, free: 35.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2671, allocations: 0 / 388 MB, free: 35.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.2674, allocations: 147.7 kB / 388.1 MB, free: 35.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.2677, allocations: 41.7 kB / 388.1 MB, free: 35.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.2689, allocations: 0.8186 MB / 389 MB, free: 34.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.269, allocations: 0.7399 MB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.2691, allocations: 27.42 kB / 389.7 MB, free: 33.43 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2691, allocations: 0 / 389.7 MB, free: 33.43 MB / 298.7 MB Notification: Performance of Templates: time 0.00524/0.2744, allocations: 3.777 MB / 393.5 MB, free: 29.66 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches