Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002971/0.002977, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.759/3.759, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001923/0.001923, allocations: 98.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006136/0.0006137, allocations: 8 kB / 326.9 MB, free: 15.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1472, allocations: 47.59 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005679/0.153, allocations: 2.265 MB / 376.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.1564, allocations: 0.9246 MB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003616/0.1568, allocations: 8 kB / 377.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.1571, allocations: 39.7 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006197/0.1577, allocations: 127.6 kB / 377.9 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009326/0.1587, allocations: 159.7 kB / 378.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1599, allocations: 352.5 kB / 378.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003933/0.1603, allocations: 90.02 kB / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006394/0.161, allocations: 211.3 kB / 378.7 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006552/0.1617, allocations: 247.1 kB / 378.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.1618, allocations: 28 kB / 379 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003749/0.1622, allocations: 55.97 kB / 379 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1624, allocations: 87.7 kB / 379.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.1627, allocations: 93.45 kB / 379.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009204/0.1636, allocations: 375.3 kB / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1636, allocations: 0 / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1636, allocations: 0 / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.1637, allocations: 3.938 kB / 379.6 MB, free: 10.38 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.003025/0.1667, allocations: 0.694 MB / 380.3 MB, free: 9.637 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.1668, allocations: 8.031 kB / 380.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002592/0.1671, allocations: 39.53 kB / 380.3 MB, free: 9.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008355/0.1679, allocations: 305.4 kB / 380.6 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.418e-05/0.168, allocations: 21 kB / 380.6 MB, free: 9.223 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.1682, allocations: 36 kB / 380.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.1705, allocations: 446.2 kB / 381.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.1706, allocations: 7.906 kB / 381.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.907e-05/0.1707, allocations: 8 kB / 381.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.1708, allocations: 12 kB / 381.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/0.1733, allocations: 471.7 kB / 381.6 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005997/0.1794, allocations: 1.296 MB / 382.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.1815, allocations: 372.5 kB / 383.2 MB, free: 6.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.1817, allocations: 4.375 kB / 383.2 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/0.1818, allocations: 34.88 kB / 383.3 MB, free: 6.473 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 5.601e-06/0.1818, allocations: 4 kB / 383.3 MB, free: 6.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.01389/0.1957, allocations: 2.373 MB / 385.7 MB, free: 3.961 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.1958, allocations: 59.84 kB / 385.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005697/0.1964, allocations: 250.6 kB / 386 MB, free: 3.641 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.1966, allocations: 41.7 kB / 386 MB, free: 3.594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.1969, allocations: 231 kB / 386.2 MB, free: 3.367 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.1972, allocations: 161.7 kB / 386.4 MB, free: 3.207 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.1973, allocations: 12 kB / 386.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.1976, allocations: 330.8 kB / 386.7 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.1989, allocations: 241 kB / 387 MB, free: 2.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.2003, allocations: 303.2 kB / 387.3 MB, free: 2.312 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.2015, allocations: 206.1 kB / 387.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.2016, allocations: 4 kB / 387.5 MB, free: 2.109 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00436/0.206, allocations: 0.751 MB / 388.2 MB, free: 1.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.626e-05/0.2061, allocations: 8 kB / 388.2 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.2061, allocations: 3.938 kB / 388.2 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003009/0.2091, allocations: 0.5452 MB / 388.8 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008934/0.2101, allocations: 75.89 kB / 388.8 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4059/0.6161, allocations: 3.465 MB / 392.3 MB, free: 17.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.6179, allocations: 101.5 kB / 392.4 MB, free: 17.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002391/0.6182, allocations: 18.86 kB / 392.4 MB, free: 17.98 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006428/0.6189, allocations: 170.6 kB / 392.6 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.6191, allocations: 32.66 kB / 392.6 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005097/0.6242, allocations: 0.7357 MB / 393.4 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/0.6244, allocations: 11.17 kB / 393.4 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.6244, allocations: 1.094 kB / 393.4 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.6244, allocations: 2.438 kB / 393.4 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006786/0.6312, allocations: 1.28 MB / 394.6 MB, free: 17.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.6313, allocations: 0 / 394.6 MB, free: 17.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.6324, allocations: 59.45 kB / 394.7 MB, free: 17.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003422/0.6358, allocations: 0.5277 MB / 395.2 MB, free: 17.08 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002495/0.6362, allocations: 22.69 kB / 395.3 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006238/0.6424, allocations: 3.447 MB / 398.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6425, allocations: 0 / 398.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006517/0.6491, allocations: 1.049 MB / 399.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006715/0.6498, allocations: 158.1 kB / 399.9 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002851/0.6501, allocations: 14.22 kB / 399.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/0.6519, allocations: 104.5 kB / 400 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007771/0.6528, allocations: 103.8 kB / 400.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/0.653, allocations: 20.05 kB / 400.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004628/0.6535, allocations: 177.4 kB / 400.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.6535, allocations: 0 / 400.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001487/0.655, allocations: 123.3 kB / 400.4 MB, free: 13.07 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.000575/0.6557, allocations: 149.9 kB / 400.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004735/0.6604, allocations: 0.8125 MB / 401.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/0.6605, allocations: 0 / 401.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.6634, allocations: 0.5452 MB / 401.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.6647, allocations: 52.81 kB / 402 MB, free: 12.19 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005668/0.6704, allocations: 1.19 MB / 403.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005892/0.6711, allocations: 0.8045 MB / 404 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.6714, allocations: 31.83 kB / 404 MB, free: 10.72 MB / 282.7 MB Notification: Performance of SimCode: time 2.044e-06/0.6714, allocations: 0 / 404 MB, free: 10.72 MB / 282.7 MB Notification: Performance of Templates: time 0.03384/0.7053, allocations: 8.469 MB / 412.5 MB, free: 7.449 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches