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.0009559/0.0009559, allocations: 178.4 kB / 16.41 MB, free: 5.707 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.41/1.41, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007382/0.0007383, allocations: 98.28 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002758, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2014, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002198/0.2037, allocations: 1.847 MB / 376.4 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.2048, allocations: 0.6867 MB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2049, allocations: 3.562 kB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.2051, allocations: 24.88 kB / 377.1 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.2053, allocations: 57.94 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.2055, allocations: 76.41 kB / 377.2 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.2058, allocations: 229.4 kB / 377.5 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2059, allocations: 59.66 kB / 377.5 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.2061, allocations: 90.23 kB / 377.6 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.2063, allocations: 97.88 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.2063, allocations: 9.75 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.2064, allocations: 59.95 kB / 377.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.928e-05/0.2065, allocations: 36.05 kB / 377.8 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.907e-05/0.2066, allocations: 63.67 kB / 377.9 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.2068, allocations: 196.8 kB / 378.1 MB, free: 42.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2068, allocations: 4 kB / 378.1 MB, free: 42.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2068, allocations: 1.062 kB / 378.1 MB, free: 42.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2068, allocations: 0 / 378.1 MB, free: 42.76 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.000731/0.2075, allocations: 493.5 kB / 378.5 MB, free: 42.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2076, allocations: 13.69 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.698e-05/0.2076, allocations: 27.47 kB / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.2079, allocations: 232.2 kB / 378.8 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.2079, allocations: 16.09 kB / 378.8 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.208, allocations: 20.69 kB / 378.9 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.2083, allocations: 224.5 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2084, allocations: 5.531 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.2084, allocations: 5.406 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.2084, allocations: 8.656 kB / 379.1 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003177/0.2087, allocations: 166.2 kB / 379.3 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2097, allocations: 0.7855 MB / 380 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.2101, allocations: 129.6 kB / 380.2 MB, free: 41.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.2102, allocations: 73.89 kB / 380.2 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2103, allocations: 2.812 kB / 380.2 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.2103, allocations: 35.81 kB / 380.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.242e-06/0.2103, allocations: 0 / 380.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001788/0.2121, allocations: 1.014 MB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.2121, allocations: 53.62 kB / 381.3 MB, free: 40.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.2123, allocations: 206.7 kB / 381.5 MB, free: 39.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.2124, allocations: 31.3 kB / 381.6 MB, free: 39.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.532e-05/0.2124, allocations: 141.6 kB / 381.7 MB, free: 39.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.2125, allocations: 75.64 kB / 381.8 MB, free: 39.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.2125, allocations: 5.094 kB / 381.8 MB, free: 39.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.403e-05/0.2126, allocations: 331.1 kB / 382.1 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.2127, allocations: 86.81 kB / 382.2 MB, free: 39.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2129, allocations: 118.8 kB / 382.3 MB, free: 39.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.2131, allocations: 82.36 kB / 382.4 MB, free: 39.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2131, allocations: 0 / 382.4 MB, free: 39.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005088/0.2136, allocations: 290.2 kB / 382.7 MB, free: 39.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2136, allocations: 5.188 kB / 382.7 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2137, allocations: 0.8125 kB / 382.7 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.2139, allocations: 73.42 kB / 382.8 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.214, allocations: 42.66 kB / 382.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003493/0.2144, allocations: 0.6128 MB / 383.4 MB, free: 38.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.2146, allocations: 35.09 kB / 383.4 MB, free: 38.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2146, allocations: 9.75 kB / 383.5 MB, free: 38.38 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 9.736e-05/0.2147, allocations: 133.2 kB / 383.6 MB, free: 38.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.2148, allocations: 21.19 kB / 383.6 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.2148, allocations: 34.05 kB / 383.6 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2149, allocations: 2.812 kB / 383.6 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2149, allocations: 7.953 kB / 383.6 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2149, allocations: 1.062 kB / 383.7 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007098/0.2156, allocations: 0.6049 MB / 384.3 MB, free: 37.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2156, allocations: 1.312 kB / 384.3 MB, free: 37.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.2158, allocations: 36.25 kB / 384.3 MB, free: 37.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.2159, allocations: 66.92 kB / 384.4 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.216, allocations: 10.45 kB / 384.4 MB, free: 37.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000308/0.2163, allocations: 0.6067 MB / 385 MB, free: 37.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2163, allocations: 4.062 kB / 385 MB, free: 37.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/0.2168, allocations: 431.4 kB / 385.4 MB, free: 36.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.245e-05/0.2169, allocations: 109.9 kB / 385.5 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.217, allocations: 6.656 kB / 385.5 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.2172, allocations: 24.55 kB / 385.5 MB, free: 36.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.2173, allocations: 30.95 kB / 385.6 MB, free: 36.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.2173, allocations: 5.25 kB / 385.6 MB, free: 36.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001101/0.2174, allocations: 157.5 kB / 385.7 MB, free: 36.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2174, allocations: 0 / 385.7 MB, free: 36.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003236/0.2177, allocations: 63.12 kB / 385.8 MB, free: 36.49 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.0001563/0.2179, allocations: 126 kB / 385.9 MB, free: 36.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004553/0.2184, allocations: 200.6 kB / 386.1 MB, free: 36.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2184, allocations: 4.125 kB / 386.1 MB, free: 36.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.2186, allocations: 104.4 kB / 386.2 MB, free: 36.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.219, allocations: 37.41 kB / 386.2 MB, free: 36.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.2202, allocations: 0.8474 MB / 387.1 MB, free: 35.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2204, allocations: 0.7384 MB / 387.8 MB, free: 34.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.042e-05/0.2204, allocations: 18.47 kB / 387.9 MB, free: 34.84 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2204, allocations: 3.938 kB / 387.9 MB, free: 34.84 MB / 298.7 MB Notification: Performance of Templates: time 0.004486/0.2249, allocations: 3.416 MB / 391.3 MB, free: 31.51 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