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.001129/0.001129, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.382/1.382, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007254/0.0007256, allocations: 93.3 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2264, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003022/0.2295, allocations: 2.38 MB / 377.5 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.2315, allocations: 0.8941 MB / 378.4 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.2317, allocations: 8.625 kB / 378.4 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.232, allocations: 52.41 kB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.2322, allocations: 91.11 kB / 378.5 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.2327, allocations: 161.2 kB / 378.7 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.2331, allocations: 0.5034 MB / 379.2 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.2334, allocations: 92.84 kB / 379.3 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.2336, allocations: 209.8 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.2339, allocations: 241.4 kB / 379.7 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.353e-05/0.234, allocations: 23.16 kB / 379.7 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.2342, allocations: 72.62 kB / 379.8 MB, free: 41.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.2343, allocations: 89.2 kB / 379.9 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.2345, allocations: 207.4 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.2348, allocations: 376.1 kB / 380.5 MB, free: 41.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2348, allocations: 0 / 380.5 MB, free: 41.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2349, allocations: 3.938 kB / 380.5 MB, free: 41.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2349, allocations: 0 / 380.5 MB, free: 41.44 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001173/0.236, allocations: 0.6843 MB / 381.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2361, allocations: 9.469 kB / 381.2 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/0.2362, allocations: 56.88 kB / 381.2 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2365, allocations: 301.8 kB / 381.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.2366, allocations: 27.53 kB / 381.5 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.2366, allocations: 42.64 kB / 381.6 MB, free: 40.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000778/0.2374, allocations: 444 kB / 382 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2375, allocations: 4.969 kB / 382 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.2375, allocations: 14.47 kB / 382 MB, free: 40.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2375, allocations: 12.19 kB / 382 MB, free: 40.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008853/0.2384, allocations: 473.4 kB / 382.5 MB, free: 40.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.2404, allocations: 1.294 MB / 383.8 MB, free: 39.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008035/0.2413, allocations: 375 kB / 384.2 MB, free: 38.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/0.2417, allocations: 255.7 kB / 384.4 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.2418, allocations: 4.75 kB / 384.4 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.2418, allocations: 36.84 kB / 384.4 MB, free: 38.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.783e-06/0.2418, allocations: 0 / 384.4 MB, free: 38.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004884/0.2467, allocations: 2.375 MB / 386.8 MB, free: 36.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.2468, allocations: 59.84 kB / 386.9 MB, free: 36.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.247, allocations: 246.6 kB / 387.1 MB, free: 36.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.431e-05/0.247, allocations: 45.69 kB / 387.2 MB, free: 36.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.793e-05/0.2471, allocations: 172.5 kB / 387.3 MB, free: 36.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.522e-05/0.2472, allocations: 165.7 kB / 387.5 MB, free: 35.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.2472, allocations: 15.94 kB / 387.5 MB, free: 35.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.125e-05/0.2473, allocations: 342.8 kB / 387.8 MB, free: 35.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.2477, allocations: 233 kB / 388.1 MB, free: 35.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.2481, allocations: 311.2 kB / 388.4 MB, free: 35.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006773/0.2488, allocations: 439.7 kB / 388.8 MB, free: 34.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.2488, allocations: 0 / 388.8 MB, free: 34.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001301/0.2501, allocations: 0.7626 MB / 389.6 MB, free: 33.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.2502, allocations: 4 kB / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2502, allocations: 0 / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009341/0.2511, allocations: 0.5491 MB / 390.1 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.2514, allocations: 71.89 kB / 390.2 MB, free: 33.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.2534, allocations: 3.463 MB / 393.7 MB, free: 29.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004736/0.2539, allocations: 104.1 kB / 393.8 MB, free: 29.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.2539, allocations: 20 kB / 393.8 MB, free: 29.29 MB / 298.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.000187/0.2541, allocations: 174.2 kB / 393.9 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.2542, allocations: 31.62 kB / 394 MB, free: 29.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.2555, allocations: 0.7364 MB / 394.7 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2555, allocations: 4 kB / 394.7 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2555, allocations: 4 kB / 394.7 MB, free: 28.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2556, allocations: 11.86 kB / 394.7 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.2574, allocations: 1.267 MB / 396 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2574, allocations: 4 kB / 396 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.2577, allocations: 59.91 kB / 396.1 MB, free: 26.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008143/0.2585, allocations: 0.5255 MB / 396.6 MB, free: 26.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.2585, allocations: 15.98 kB / 396.6 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001828/0.2604, allocations: 3.433 MB / 400 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2604, allocations: 4 kB / 400 MB, free: 22.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.262, allocations: 1.055 MB / 401.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.2622, allocations: 160.7 kB / 401.3 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.701e-05/0.2622, allocations: 16 kB / 401.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.2627, allocations: 103.8 kB / 401.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.2629, allocations: 108.2 kB / 401.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.2629, allocations: 19.98 kB / 401.5 MB, free: 21.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001261/0.2631, allocations: 182 kB / 401.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2631, allocations: 0 / 401.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000463/0.2635, allocations: 124 kB / 401.8 MB, free: 20.83 MB / 298.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.0002399/0.2638, allocations: 137.3 kB / 401.9 MB, free: 20.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.2651, allocations: 0.8221 MB / 402.8 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2651, allocations: 0 / 402.8 MB, free: 19.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007225/0.2658, allocations: 0.5409 MB / 403.3 MB, free: 19.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/0.2664, allocations: 60.08 kB / 403.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.2681, allocations: 1.193 MB / 404.5 MB, free: 18.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.2683, allocations: 0.7957 MB / 405.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.036e-05/0.2684, allocations: 39.36 kB / 405.4 MB, free: 17.14 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2684, allocations: 0 / 405.4 MB, free: 17.14 MB / 298.7 MB Notification: Performance of Templates: time 0.008533/0.2769, allocations: 8.808 MB / 414.2 MB, free: 8.336 MB / 298.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/jenkins/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