Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009669/0.0009667, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007098/0.0007099, allocations: 107.3 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000202/0.0002021, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2026, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.001842/0.2045, allocations: 1.955 MB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.2053, allocations: 0.7775 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/0.2054, allocations: 7.938 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001996/0.2056, allocations: 43.77 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.2058, allocations: 89.92 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001181/0.206, allocations: 51.88 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.2062, allocations: 247.4 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.2063, allocations: 53.95 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.2065, allocations: 107.6 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.2066, allocations: 114.5 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.2067, allocations: 8 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.2068, allocations: 63.98 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.702e-05/0.2068, allocations: 39.83 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.243e-05/0.2069, allocations: 121.2 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.2071, allocations: 228.4 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2071, allocations: 3.938 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2071, allocations: 0 / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.2071, allocations: 2.75 kB / 411.9 MB, free: 23.8 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006088/0.2077, allocations: 0.5093 MB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2078, allocations: 8.031 kB / 412.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.2079, allocations: 36.64 kB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.2082, allocations: 236 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.2082, allocations: 16.75 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.2082, allocations: 20.38 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.2086, allocations: 222.7 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.2086, allocations: 3.906 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.2086, allocations: 11.98 kB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.2086, allocations: 8 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.2089, allocations: 159.3 kB / 413.1 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008605/0.2098, allocations: 0.7817 MB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002984/0.2101, allocations: 150.7 kB / 414.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.2102, allocations: 79.17 kB / 414.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.2102, allocations: 3.984 kB / 414.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.2103, allocations: 34.56 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.302e-06/0.2103, allocations: 4 kB / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001468/0.2117, allocations: 1.016 MB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.953e-05/0.2118, allocations: 55.41 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.2119, allocations: 204.8 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.212, allocations: 33.7 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.212, allocations: 140.2 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.2121, allocations: 67 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.222e-05/0.2121, allocations: 8 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.2121, allocations: 330.8 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.2123, allocations: 71.91 kB / 416.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.2124, allocations: 111.4 kB / 416.2 MB, free: 19.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.2126, allocations: 163.3 kB / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2127, allocations: 0 / 416.4 MB, free: 19 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003835/0.213, allocations: 278 kB / 416.6 MB, free: 18.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2131, allocations: 8 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2131, allocations: 0 / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.2133, allocations: 64.88 kB / 416.7 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.2134, allocations: 35.92 kB / 416.7 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.2147, allocations: 1.647 MB / 418.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.2149, allocations: 31.97 kB / 418.4 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.2149, allocations: 8 kB / 418.4 MB, free: 16.79 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 (25): * Single equations (assignments): 24 * 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 9.023e-05/0.215, allocations: 136.6 kB / 418.6 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.945e-05/0.215, allocations: 19.81 kB / 418.6 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.2151, allocations: 33.86 kB / 418.6 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2151, allocations: 0 / 418.6 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.2151, allocations: 3.938 kB / 418.6 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2151, allocations: 0 / 418.6 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.2158, allocations: 0.6178 MB / 419.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2158, allocations: 4 kB / 419.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.2159, allocations: 27.98 kB / 419.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.2161, allocations: 52.77 kB / 419.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.2161, allocations: 8 kB / 419.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000982/0.2171, allocations: 1.57 MB / 420.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2171, allocations: 0 / 420.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005222/0.2176, allocations: 428.3 kB / 421.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.782e-05/0.2177, allocations: 116.9 kB / 421.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.044e-05/0.2178, allocations: 4 kB / 421.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2179, allocations: 27.98 kB / 421.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.2181, allocations: 67.81 kB / 421.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2181, allocations: 19.94 kB / 421.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.2182, allocations: 156.5 kB / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2182, allocations: 0 / 421.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003457/0.2186, allocations: 72 kB / 421.8 MB, free: 13.2 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 (15): * Single equations (assignments): 14 * 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.0006867/0.2193, allocations: 360.4 kB / 422.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004767/0.2197, allocations: 322.6 kB / 422.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2198, allocations: 0 / 422.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.22, allocations: 230.6 kB / 422.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.2204, allocations: 41.62 kB / 422.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.2215, allocations: 0.8698 MB / 423.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.2216, allocations: 0.7404 MB / 424.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.2217, allocations: 23.42 kB / 424.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2217, allocations: 0 / 424.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of Templates: time 0.004696/0.2264, allocations: 3.945 MB / 428.3 MB, free: 6.719 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches