Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001079/0.001079, allocations: 110.5 kB / 17.73 MB, free: 5.289 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.001162/0.001162, allocations: 187 kB / 18.66 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 47.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1177, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004543/0.1223, allocations: 2.158 MB / 377.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.1242, allocations: 0.7408 MB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.1245, allocations: 4 kB / 378 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.1248, allocations: 31.66 kB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003064/0.1251, allocations: 71.47 kB / 378.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005338/0.1256, allocations: 111.7 kB / 378.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004874/0.1261, allocations: 275.4 kB / 378.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.1264, allocations: 56.36 kB / 378.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003053/0.1267, allocations: 131.5 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.127, allocations: 123.5 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.127, allocations: 20 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.1272, allocations: 71.95 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.1274, allocations: 47.83 kB / 379 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.1276, allocations: 119.3 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005935/0.1282, allocations: 279.1 kB / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1282, allocations: 4 kB / 379.3 MB, free: 352 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1282, allocations: 0 / 379.3 MB, free: 352 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.446e-05/0.1282, allocations: 0 / 379.3 MB, free: 352 kB / 318.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.2286/0.3569, allocations: 0.5581 MB / 379.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3569, allocations: 12.8 kB / 379.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/0.3571, allocations: 27.72 kB / 379.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.3575, allocations: 232.5 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.3575, allocations: 13.97 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.673e-05/0.3576, allocations: 24.38 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.3581, allocations: 236.9 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3582, allocations: 0 / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.3582, allocations: 13.92 kB / 380.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3582, allocations: 3.406 kB / 380.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.3587, allocations: 199.1 kB / 380.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.3598, allocations: 0.6581 MB / 381.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.3604, allocations: 205.5 kB / 381.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.3607, allocations: 103.9 kB / 381.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.3607, allocations: 2.75 kB / 381.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.3611, allocations: 165 kB / 381.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.3611, allocations: 0 / 381.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002737/0.3638, allocations: 1.154 MB / 382.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.3639, allocations: 59.86 kB / 383 MB, free: 11.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.3641, allocations: 186.9 kB / 383.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.3641, allocations: 32.48 kB / 383.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.3642, allocations: 140.6 kB / 383.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.3643, allocations: 87.88 kB / 383.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3644, allocations: 71.5 kB / 383.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.158e-05/0.3645, allocations: 330.5 kB / 383.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.3648, allocations: 102.8 kB / 383.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.3651, allocations: 149.3 kB / 384.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.3656, allocations: 251.4 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3656, allocations: 1.25 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008171/0.3664, allocations: 401.3 kB / 384.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.835e-05/0.3665, allocations: 33.39 kB / 384.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3665, allocations: 2.016 kB / 384.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002486/0.3667, allocations: 71.86 kB / 384.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.367, allocations: 56.56 kB / 384.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003974/0.3674, allocations: 0.615 MB / 385.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.3676, allocations: 34.52 kB / 385.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.3677, allocations: 12.98 kB / 385.5 MB, free: 9.906 MB / 318.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.0001235/0.3678, allocations: 143.9 kB / 385.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.3679, allocations: 17.34 kB / 385.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.306e-05/0.3679, allocations: 32.83 kB / 385.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3679, allocations: 2.625 kB / 385.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3679, allocations: 0.5156 kB / 385.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.368, allocations: 1.172 kB / 385.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.3691, allocations: 0.6823 MB / 386.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3691, allocations: 1.312 kB / 386.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.3693, allocations: 44.52 kB / 386.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.3695, allocations: 65.83 kB / 386.5 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.3695, allocations: 10.86 kB / 386.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003678/0.3699, allocations: 0.6053 MB / 387.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3699, allocations: 0 / 387.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.371, allocations: 0.5116 MB / 387.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.351e-05/0.3711, allocations: 107.3 kB / 387.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.215e-05/0.3712, allocations: 6.734 kB / 387.7 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.3714, allocations: 29.72 kB / 387.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.3715, allocations: 37.17 kB / 387.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.3715, allocations: 7.719 kB / 387.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.3717, allocations: 139.2 kB / 388 MB, free: 8.203 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3717, allocations: 7.938 kB / 388 MB, free: 8.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003791/0.3721, allocations: 70 kB / 388 MB, free: 8.191 MB / 318.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.0002008/0.3723, allocations: 124.8 kB / 388.2 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008026/0.3731, allocations: 331.2 kB / 388.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3731, allocations: 1.281 kB / 388.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003771/0.3735, allocations: 145.7 kB / 388.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000419/0.3739, allocations: 43.72 kB / 388.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.3753, allocations: 0.6466 MB / 389.3 MB, free: 7.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3756, allocations: 0.7369 MB / 390 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.3757, allocations: 22.3 kB / 390.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.547e-05/0.3758, allocations: 22.75 kB / 390.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3758, allocations: 3.938 kB / 390.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of Templates: time 0.01357/0.3894, allocations: 3.836 MB / 393.9 MB, free: 6.484 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches