Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007787/0.0007788, allocations: 93.3 kB / 17.31 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008299/0.0008299, allocations: 178.4 kB / 18.21 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.115/1.115, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002001/0.0002001, allocations: 7.938 kB / 302.1 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07033/0.07054, allocations: 50.41 MB / 352.5 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001908/0.07246, allocations: 1.86 MB / 354.4 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.07348, allocations: 0.7013 MB / 355.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.505e-05/0.07357, allocations: 0 / 355.1 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.0737, allocations: 23.84 kB / 355.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.07385, allocations: 59.53 kB / 355.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.0741, allocations: 87.84 kB / 355.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.07434, allocations: 259.5 kB / 355.5 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.07446, allocations: 48.36 kB / 355.5 MB, free: 428 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.07462, allocations: 111.5 kB / 355.6 MB, free: 316 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.07478, allocations: 115.5 kB / 355.7 MB, free: 200 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.07482, allocations: 12 kB / 355.8 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.07493, allocations: 59.94 kB / 355.8 MB, free: 128 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/0.07499, allocations: 35.84 kB / 355.8 MB, free: 92 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.0751, allocations: 129.1 kB / 356 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.0753, allocations: 191.8 kB / 356.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.07531, allocations: 0 / 356.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.07531, allocations: 4 kB / 356.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.07532, allocations: 4 kB / 356.2 MB, free: 15.76 MB / 302.1 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.0007793/0.07611, allocations: 0.5354 MB / 356.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.72e-05/0.07614, allocations: 8.031 kB / 356.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.438e-05/0.0762, allocations: 24.66 kB / 356.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.07641, allocations: 235.9 kB / 357 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.07644, allocations: 16.38 kB / 357 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.07648, allocations: 16.38 kB / 357 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.07691, allocations: 247.5 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.07693, allocations: 3.906 kB / 357.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.07696, allocations: 12 kB / 357.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.07697, allocations: 4 kB / 357.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004464/0.07742, allocations: 211.8 kB / 357.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008635/0.0783, allocations: 0.6837 MB / 358.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.07881, allocations: 222.3 kB / 358.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.07903, allocations: 100.8 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.07906, allocations: 11.92 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003332/0.0794, allocations: 171.6 kB / 358.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.07941, allocations: 0 / 358.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002174/0.08159, allocations: 1.209 MB / 359.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.08164, allocations: 63.39 kB / 359.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.08179, allocations: 187.9 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.08183, allocations: 33.7 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.0819, allocations: 132.3 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.08196, allocations: 94.69 kB / 360.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.08201, allocations: 29.7 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.203e-05/0.08211, allocations: 338.8 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.08237, allocations: 116.3 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.08264, allocations: 152.2 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.08311, allocations: 263.8 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.08312, allocations: 0 / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007585/0.08389, allocations: 412.7 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.08393, allocations: 41.77 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.08394, allocations: 3.938 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.08413, allocations: 76.83 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.08433, allocations: 55.91 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003988/0.08474, allocations: 0.607 MB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.085, allocations: 47.98 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.08503, allocations: 8 kB / 362.5 MB, free: 9.031 MB / 302.1 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 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.08516, allocations: 145.8 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.08519, allocations: 23.72 kB / 362.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.631e-05/0.08525, allocations: 29.86 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.08526, allocations: 0 / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.08527, allocations: 0 / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.08528, allocations: 8 kB / 362.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009505/0.08623, allocations: 0.6984 MB / 363.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.08624, allocations: 0 / 363.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/0.08645, allocations: 47.91 kB / 363.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001417/0.0866, allocations: 72.88 kB / 363.5 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.08663, allocations: 8 kB / 363.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003631/0.087, allocations: 0.607 MB / 364.1 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.08701, allocations: 3.938 kB / 364.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008917/0.0879, allocations: 0.5233 MB / 364.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.64e-05/0.088, allocations: 116.8 kB / 364.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.08804, allocations: 8 kB / 364.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.08828, allocations: 39.97 kB / 364.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.08836, allocations: 35.88 kB / 364.8 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.08839, allocations: 12 kB / 364.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.926e-05/0.08849, allocations: 143.4 kB / 365 MB, free: 6.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0885, allocations: 0 / 365 MB, free: 6.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.08878, allocations: 68 kB / 365 MB, free: 6.32 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001399/0.08893, allocations: 129.9 kB / 365.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006569/0.0896, allocations: 347.2 kB / 365.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.08961, allocations: 0 / 365.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.08993, allocations: 148 kB / 365.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.09028, allocations: 39.91 kB / 365.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.09145, allocations: 0.8323 MB / 366.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.09176, allocations: 0.7517 MB / 367.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.852e-05/0.09183, allocations: 15.44 kB / 367.3 MB, free: 3.992 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09183, allocations: 4 kB / 367.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of Templates: time 0.005095/0.09693, allocations: 3.758 MB / 371.1 MB, free: 244 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches