Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001855/0.001855, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.463/1.463, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0006755/0.0006754, allocations: 85.42 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003238, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2402, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002494/0.2428, allocations: 1.848 MB / 376.9 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.244, allocations: 0.69 MB / 377.6 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2441, allocations: 3.312 kB / 377.6 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.2443, allocations: 27.95 kB / 377.6 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.2445, allocations: 50.89 kB / 377.7 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.2448, allocations: 79.47 kB / 377.8 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002764/0.2451, allocations: 236.1 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.2452, allocations: 51.94 kB / 378.1 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.2454, allocations: 94.59 kB / 378.1 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.2456, allocations: 104.9 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.2457, allocations: 10.91 kB / 378.3 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.2458, allocations: 55.39 kB / 378.3 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.438e-05/0.2459, allocations: 31.59 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.246, allocations: 122.3 kB / 378.5 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.2462, allocations: 201.3 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2462, allocations: 0 / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2462, allocations: 4 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2462, allocations: 0 / 378.7 MB, free: 42.73 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.0007436/0.247, allocations: 488.5 kB / 379.1 MB, free: 42.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.247, allocations: 13.44 kB / 379.2 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.2471, allocations: 31.88 kB / 379.2 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.2473, allocations: 233.8 kB / 379.4 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2474, allocations: 12.38 kB / 379.4 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.2474, allocations: 21.22 kB / 379.4 MB, free: 41.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.2478, allocations: 225.2 kB / 379.7 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.2479, allocations: 9.016 kB / 379.7 MB, free: 41.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.2479, allocations: 10.16 kB / 379.7 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.084e-05/0.248, allocations: 4.438 kB / 379.7 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.2483, allocations: 165.9 kB / 379.9 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.2493, allocations: 0.7892 MB / 380.6 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.2497, allocations: 133.6 kB / 380.8 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.2498, allocations: 68.59 kB / 380.8 MB, free: 40.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.2498, allocations: 6.016 kB / 380.8 MB, free: 40.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.2499, allocations: 39.56 kB / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.472e-06/0.2499, allocations: 0 / 380.9 MB, free: 40.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001701/0.2516, allocations: 1.004 MB / 381.9 MB, free: 40.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.2516, allocations: 53.88 kB / 381.9 MB, free: 40.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.2518, allocations: 208.8 kB / 382.1 MB, free: 39.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2518, allocations: 32.48 kB / 382.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.2519, allocations: 137.1 kB / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.252, allocations: 76.17 kB / 382.4 MB, free: 39.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.252, allocations: 9.438 kB / 382.4 MB, free: 39.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.922e-05/0.252, allocations: 330.6 kB / 382.7 MB, free: 39.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.2522, allocations: 78.58 kB / 382.8 MB, free: 39.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.2524, allocations: 113.8 kB / 382.9 MB, free: 39.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.2527, allocations: 176.6 kB / 383.1 MB, free: 39.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2527, allocations: 1.312 kB / 383.1 MB, free: 39.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004881/0.2532, allocations: 284.6 kB / 383.4 MB, free: 38.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2532, allocations: 13.61 kB / 383.4 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2532, allocations: 1.031 kB / 383.4 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002686/0.2535, allocations: 72.84 kB / 383.4 MB, free: 38.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2537, allocations: 41.97 kB / 383.5 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003824/0.2541, allocations: 0.6167 MB / 384.1 MB, free: 38.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.2543, allocations: 35.38 kB / 384.1 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.2543, allocations: 14 kB / 384.1 MB, free: 38.29 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 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * 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 (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.0001067/0.2544, allocations: 136.6 kB / 384.3 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.2544, allocations: 21.53 kB / 384.3 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.841e-05/0.2545, allocations: 37.61 kB / 384.3 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2545, allocations: 6.672 kB / 384.3 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2545, allocations: 3.984 kB / 384.3 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2545, allocations: 1.062 kB / 384.3 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007455/0.2553, allocations: 0.5982 MB / 384.9 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2553, allocations: 1.469 kB / 384.9 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.2555, allocations: 37.47 kB / 385 MB, free: 37.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.2556, allocations: 65.55 kB / 385 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.2557, allocations: 10.42 kB / 385.1 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000343/0.256, allocations: 0.6104 MB / 385.7 MB, free: 36.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.256, allocations: 1 kB / 385.7 MB, free: 36.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005772/0.2566, allocations: 428.8 kB / 386.1 MB, free: 36.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/0.2567, allocations: 105.3 kB / 386.2 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.2567, allocations: 6.594 kB / 386.2 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.2569, allocations: 25.73 kB / 386.2 MB, free: 36.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.257, allocations: 26.42 kB / 386.3 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.257, allocations: 7.719 kB / 386.3 MB, free: 36.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.2572, allocations: 158.7 kB / 386.4 MB, free: 36.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2572, allocations: 0 / 386.4 MB, free: 36.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003309/0.2575, allocations: 66.72 kB / 386.5 MB, free: 36.39 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 (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.0001712/0.2577, allocations: 121.4 kB / 386.6 MB, free: 36.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004783/0.2582, allocations: 211.9 kB / 386.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2582, allocations: 0 / 386.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.2584, allocations: 107.3 kB / 386.9 MB, free: 36.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003817/0.2588, allocations: 28.55 kB / 386.9 MB, free: 36.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.26, allocations: 0.8661 MB / 387.8 MB, free: 35.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.2602, allocations: 0.7365 MB / 388.5 MB, free: 34.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.2602, allocations: 19.44 kB / 388.6 MB, free: 34.61 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2602, allocations: 0 / 388.6 MB, free: 34.61 MB / 298.7 MB Notification: Performance of Templates: time 0.004451/0.2647, allocations: 3.417 MB / 392 MB, free: 31.2 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches