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.000909/0.000909, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.339/1.339, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007584/0.0007588, allocations: 91.94 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003183, allocations: 12 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2179, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002382/0.2203, allocations: 2.38 MB / 376.9 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.2216, allocations: 0.8996 MB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.2217, allocations: 12.28 kB / 377.8 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2219, allocations: 40.75 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.2221, allocations: 95.02 kB / 378 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.2225, allocations: 164.6 kB / 378.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.2229, allocations: 0.4945 MB / 378.6 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2231, allocations: 97.11 kB / 378.7 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.2233, allocations: 208.5 kB / 378.9 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.2236, allocations: 239.3 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.2236, allocations: 21.97 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2238, allocations: 68.73 kB / 379.2 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.909e-05/0.2239, allocations: 84.92 kB / 379.3 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.28e-05/0.224, allocations: 89.05 kB / 379.4 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.2244, allocations: 388.1 kB / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2244, allocations: 0 / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2244, allocations: 0 / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2244, allocations: 0 / 379.8 MB, free: 41.52 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.00116/0.2256, allocations: 0.6807 MB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2257, allocations: 8.781 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.867e-05/0.2258, allocations: 48.98 kB / 380.5 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.2261, allocations: 298.9 kB / 380.8 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.2261, allocations: 27.03 kB / 380.8 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.2262, allocations: 34.22 kB / 380.9 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007955/0.227, allocations: 447.3 kB / 381.3 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.227, allocations: 9.125 kB / 381.3 MB, free: 40.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.2271, allocations: 19.86 kB / 381.3 MB, free: 40.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2271, allocations: 7.062 kB / 381.4 MB, free: 40.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009012/0.228, allocations: 469.5 kB / 381.8 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.2301, allocations: 1.294 MB / 383.1 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007582/0.2308, allocations: 379.6 kB / 383.5 MB, free: 38.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.2313, allocations: 255.4 kB / 383.7 MB, free: 38.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.2314, allocations: 8.562 kB / 383.7 MB, free: 38.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.2314, allocations: 38.12 kB / 383.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.523e-06/0.2314, allocations: 0 / 383.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004748/0.2361, allocations: 2.372 MB / 386.1 MB, free: 36.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.2362, allocations: 55.84 kB / 386.2 MB, free: 36.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.2364, allocations: 250.6 kB / 386.4 MB, free: 36.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.2364, allocations: 41.7 kB / 386.5 MB, free: 36.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.153e-05/0.2365, allocations: 168.6 kB / 386.6 MB, free: 36.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.688e-05/0.2366, allocations: 169.7 kB / 386.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.2366, allocations: 12 kB / 386.8 MB, free: 36.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.979e-05/0.2367, allocations: 342.8 kB / 387.2 MB, free: 35.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.2371, allocations: 241 kB / 387.4 MB, free: 35.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/0.2375, allocations: 311.1 kB / 387.7 MB, free: 35.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.2379, allocations: 194.1 kB / 387.9 MB, free: 35.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2379, allocations: 8 kB / 387.9 MB, free: 35.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001366/0.2392, allocations: 0.7626 MB / 388.7 MB, free: 34.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2393, allocations: 8.938 kB / 388.7 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.2393, allocations: 0 / 388.7 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008984/0.2402, allocations: 0.5491 MB / 389.2 MB, free: 33.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.2405, allocations: 71.89 kB / 389.3 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.2423, allocations: 3.469 MB / 392.8 MB, free: 29.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.2428, allocations: 104 kB / 392.9 MB, free: 29.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.2429, allocations: 20 kB / 392.9 MB, free: 29.79 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.0001585/0.243, allocations: 176.9 kB / 393.1 MB, free: 29.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.339e-05/0.2431, allocations: 39.48 kB / 393.1 MB, free: 29.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.2444, allocations: 0.7288 MB / 393.8 MB, free: 28.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2444, allocations: 4 kB / 393.8 MB, free: 28.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2444, allocations: 4 kB / 393.8 MB, free: 28.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2444, allocations: 3.984 kB / 393.8 MB, free: 28.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.2461, allocations: 1.267 MB / 395.1 MB, free: 27.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2461, allocations: 0 / 395.1 MB, free: 27.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.2464, allocations: 63.91 kB / 395.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007676/0.2472, allocations: 0.5255 MB / 395.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.685e-05/0.2472, allocations: 23.91 kB / 395.7 MB, free: 26.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.249, allocations: 3.434 MB / 399.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.249, allocations: 0 / 399.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.2506, allocations: 1.051 MB / 400.2 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.2508, allocations: 156.7 kB / 400.3 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.2508, allocations: 23.89 kB / 400.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004483/0.2513, allocations: 95.91 kB / 400.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.2515, allocations: 108.2 kB / 400.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.615e-05/0.2515, allocations: 19.97 kB / 400.6 MB, free: 21.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001248/0.2516, allocations: 186 kB / 400.8 MB, free: 21.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2517, allocations: 0 / 400.8 MB, free: 21.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004156/0.2521, allocations: 116 kB / 400.9 MB, free: 21.35 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.0001955/0.2523, allocations: 145.9 kB / 401 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.2535, allocations: 0.8215 MB / 401.8 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2536, allocations: 0 / 401.8 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007123/0.2543, allocations: 0.5449 MB / 402.4 MB, free: 19.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.2548, allocations: 52.7 kB / 402.4 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.2564, allocations: 1.189 MB / 403.6 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.2566, allocations: 0.7996 MB / 404.4 MB, free: 17.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.2567, allocations: 23.44 kB / 404.5 MB, free: 17.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2567, allocations: 4 kB / 404.5 MB, free: 17.66 MB / 298.7 MB Notification: Performance of Templates: time 0.008087/0.2648, allocations: 8.835 MB / 413.3 MB, free: 8.828 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