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.0009189/0.0009191, allocations: 97.36 kB / 16.93 MB, free: 5.984 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.0009594/0.00096, allocations: 177.7 kB / 17.82 MB, free: 5.652 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.453/1.453, allocations: 205.4 MB / 224 MB, free: 13.16 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.0007775/0.0007776, allocations: 16 kB / 280.7 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1189, allocations: 47.57 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002458/0.1214, allocations: 1.754 MB / 330.1 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1227, allocations: 0.7182 MB / 330.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1228, allocations: 4 kB / 330.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.123, allocations: 19.84 kB / 330.8 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.1232, allocations: 71.78 kB / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.1234, allocations: 83.77 kB / 331 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002502/0.1237, allocations: 172.1 kB / 331.1 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.1238, allocations: 48.5 kB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.124, allocations: 99.66 kB / 331.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1242, allocations: 115.6 kB / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.1243, allocations: 12 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.1244, allocations: 47.97 kB / 331.4 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.501e-05/0.1245, allocations: 39.83 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.53e-05/0.1245, allocations: 61.58 kB / 331.5 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.1248, allocations: 191.8 kB / 331.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1248, allocations: 4 kB / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1248, allocations: 4 kB / 331.7 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1248, allocations: 0 / 331.7 MB, free: 0.6523 MB / 270.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.001041/0.1259, allocations: 0.5353 MB / 332.3 MB, free: 64 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.1259, allocations: 8.031 kB / 332.3 MB, free: 56 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.448e-05/0.126, allocations: 23.72 kB / 332.3 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.1263, allocations: 234.6 kB / 332.5 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.1264, allocations: 15.94 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.1264, allocations: 24 kB / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004893/0.1269, allocations: 235.2 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.127, allocations: 3.984 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.127, allocations: 8 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.127, allocations: 4 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.1275, allocations: 207.8 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1285, allocations: 0.6913 MB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.1291, allocations: 210.5 kB / 333.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.1291, allocations: 4 kB / 333.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.1295, allocations: 171.5 kB / 334.1 MB, free: 14.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1296, allocations: 4 kB / 334.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002426/0.132, allocations: 1.199 MB / 335.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.1321, allocations: 63.33 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.1323, allocations: 198.8 kB / 335.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.1323, allocations: 33.7 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.154e-05/0.1324, allocations: 132.3 kB / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.1325, allocations: 90.83 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.776e-05/0.1325, allocations: 11.94 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1327, allocations: 334.8 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.1329, allocations: 112.3 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.1332, allocations: 148.3 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.1335, allocations: 131.1 kB / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1335, allocations: 4 kB / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008307/0.1344, allocations: 417.3 kB / 336.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.1344, allocations: 37.66 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.1344, allocations: 0 / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/0.1347, allocations: 68.81 kB / 337 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.1349, allocations: 55.91 kB / 337.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004922/0.1354, allocations: 0.6187 MB / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.1357, allocations: 43.98 kB / 337.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.1357, allocations: 16 kB / 337.8 MB, free: 10.21 MB / 286.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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (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.0001573/0.1359, allocations: 146.1 kB / 337.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.1359, allocations: 23.81 kB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.352e-05/0.136, allocations: 25.86 kB / 338 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.136, allocations: 0 / 338 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.136, allocations: 0 / 338 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.136, allocations: 4 kB / 338 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1371, allocations: 0.6864 MB / 338.7 MB, free: 9.262 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1371, allocations: 3.953 kB / 338.7 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002111/0.1373, allocations: 51.91 kB / 338.7 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.1375, allocations: 72.75 kB / 338.8 MB, free: 9.133 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1375, allocations: 4 kB / 338.8 MB, free: 9.129 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004236/0.1379, allocations: 0.6071 MB / 339.4 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.138, allocations: 64 / 339.4 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009538/0.1389, allocations: 0.5232 MB / 339.9 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.393e-05/0.139, allocations: 104.9 kB / 340 MB, free: 7.832 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.402e-05/0.1391, allocations: 15.94 kB / 340 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.1393, allocations: 39.97 kB / 340.1 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1394, allocations: 39.88 kB / 340.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1395, allocations: 4 kB / 340.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001174/0.1396, allocations: 143.2 kB / 340.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1396, allocations: 0 / 340.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.14, allocations: 68 kB / 340.3 MB, free: 7.527 MB / 286.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 (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.0002836/0.1403, allocations: 127.2 kB / 340.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008039/0.1411, allocations: 347.6 kB / 340.8 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1411, allocations: 4.125 kB / 340.8 MB, free: 7.039 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003509/0.1414, allocations: 143.8 kB / 340.9 MB, free: 6.898 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.1418, allocations: 35.98 kB / 341 MB, free: 6.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.1431, allocations: 0.7973 MB / 341.8 MB, free: 6.043 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.1435, allocations: 0.7479 MB / 342.5 MB, free: 5.27 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.878e-05/0.1436, allocations: 25.94 kB / 342.5 MB, free: 5.246 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.028e-05/0.1436, allocations: 19.44 kB / 342.6 MB, free: 5.227 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1436, allocations: 0 / 342.6 MB, free: 5.227 MB / 286.1 MB Notification: Performance of Templates: time 0.006731/0.1504, allocations: 3.308 MB / 345.9 MB, free: 1.922 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches