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.0009102/0.0009102, allocations: 177.1 kB / 16.41 MB, free: 5.727 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.405/1.405, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0007206/0.0007207, allocations: 83.88 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002896, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2082, allocations: 47.56 MB / 374.5 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001742/0.21, allocations: 1.808 MB / 376.3 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009401/0.211, allocations: 0.7051 MB / 377.1 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.666e-05/0.2111, allocations: 6.344 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.2112, allocations: 20.62 kB / 377.1 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.2113, allocations: 54.52 kB / 377.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.2116, allocations: 84.7 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.2118, allocations: 240.8 kB / 377.5 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.2119, allocations: 49.48 kB / 377.5 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.2121, allocations: 101.5 kB / 377.6 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.2122, allocations: 111.6 kB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.2123, allocations: 10.75 kB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2124, allocations: 52.17 kB / 377.8 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.853e-05/0.2124, allocations: 43.42 kB / 377.8 MB, free: 43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.077e-05/0.2125, allocations: 60.83 kB / 377.9 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.2127, allocations: 196.9 kB / 378.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2127, allocations: 1.062 kB / 378.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2127, allocations: 0 / 378.1 MB, free: 42.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2127, allocations: 0 / 378.1 MB, free: 42.81 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.0007851/0.2135, allocations: 0.5338 MB / 378.6 MB, free: 42.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2135, allocations: 9.031 kB / 378.6 MB, free: 42.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.007e-05/0.2136, allocations: 27.34 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.2138, allocations: 238.5 kB / 378.9 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.2139, allocations: 20.34 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.2139, allocations: 24.94 kB / 378.9 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.2144, allocations: 237.6 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2144, allocations: 5.125 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.2145, allocations: 10.22 kB / 379.2 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.2145, allocations: 4.531 kB / 379.2 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.215, allocations: 206.4 kB / 379.4 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008922/0.2159, allocations: 0.6753 MB / 380 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.2164, allocations: 213.8 kB / 380.2 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.2167, allocations: 107.9 kB / 380.4 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.2167, allocations: 2.094 kB / 380.4 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.2171, allocations: 174.2 kB / 380.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.2171, allocations: 0 / 380.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.002247/0.2193, allocations: 1.225 MB / 381.7 MB, free: 40 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.343e-05/0.2194, allocations: 58.14 kB / 381.8 MB, free: 39.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.2195, allocations: 188.9 kB / 382 MB, free: 39.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.2196, allocations: 35.92 kB / 382 MB, free: 39.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/0.2196, allocations: 141 kB / 382.2 MB, free: 39.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.2197, allocations: 86.91 kB / 382.2 MB, free: 39.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/0.2197, allocations: 4.75 kB / 382.3 MB, free: 39.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.872e-05/0.2197, allocations: 336.6 kB / 382.6 MB, free: 39.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.22, allocations: 115.1 kB / 382.7 MB, free: 39.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.2203, allocations: 149 kB / 382.8 MB, free: 39.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.2206, allocations: 132 kB / 383 MB, free: 38.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2206, allocations: 0 / 383 MB, free: 38.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007743/0.2213, allocations: 423.6 kB / 383.4 MB, free: 38.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.2214, allocations: 31.98 kB / 383.4 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.2214, allocations: 1.219 kB / 383.4 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.2216, allocations: 71.86 kB / 383.5 MB, free: 38.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.2218, allocations: 59.53 kB / 383.5 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003709/0.2222, allocations: 0.6163 MB / 384.2 MB, free: 38.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.2225, allocations: 46.36 kB / 384.2 MB, free: 38.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.2225, allocations: 9 kB / 384.2 MB, free: 38.07 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.0001047/0.2227, allocations: 142 kB / 384.4 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.2227, allocations: 17.41 kB / 384.4 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.2227, allocations: 30.83 kB / 384.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2228, allocations: 1.875 kB / 384.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2228, allocations: 0.9375 kB / 384.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2228, allocations: 0 / 384.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009593/0.2237, allocations: 0.6961 MB / 385.1 MB, free: 37.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2238, allocations: 4 kB / 385.1 MB, free: 37.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.224, allocations: 49.47 kB / 385.2 MB, free: 37.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.2241, allocations: 66.34 kB / 385.2 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.2242, allocations: 2.625 kB / 385.2 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002982/0.2245, allocations: 0.6115 MB / 385.8 MB, free: 36.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2245, allocations: 1.031 kB / 385.8 MB, free: 36.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.2254, allocations: 0.5182 MB / 386.3 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.558e-05/0.2255, allocations: 118.5 kB / 386.5 MB, free: 36.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.2255, allocations: 10.14 kB / 386.5 MB, free: 36.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.2258, allocations: 41.44 kB / 386.5 MB, free: 36.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.98e-05/0.2259, allocations: 33.03 kB / 386.5 MB, free: 36.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.2259, allocations: 13.83 kB / 386.6 MB, free: 36.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.708e-05/0.226, allocations: 135.7 kB / 386.7 MB, free: 36.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.226, allocations: 0 / 386.7 MB, free: 36.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003197/0.2263, allocations: 72.86 kB / 386.8 MB, free: 36.07 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.000147/0.2265, allocations: 126.1 kB / 386.9 MB, free: 35.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006333/0.2271, allocations: 343.8 kB / 387.2 MB, free: 35.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2271, allocations: 0 / 387.2 MB, free: 35.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.2274, allocations: 147.7 kB / 387.4 MB, free: 35.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.2278, allocations: 47.92 kB / 387.4 MB, free: 35.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.2289, allocations: 0.8219 MB / 388.2 MB, free: 34.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.229, allocations: 0.744 MB / 389 MB, free: 33.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.2291, allocations: 19.42 kB / 389 MB, free: 33.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2291, allocations: 8 kB / 389 MB, free: 33.75 MB / 298.7 MB Notification: Performance of Templates: time 0.004358/0.2335, allocations: 3.759 MB / 392.8 MB, free: 30 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