Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001204/0.001204, allocations: 187 kB / 17.92 MB, free: 3.855 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.159/1.159, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.0009192/0.0009192, allocations: 100.3 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2009, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003382/0.2043, allocations: 2.842 MB / 376.7 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2055, allocations: 0.9444 MB / 377.6 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2057, allocations: 3.688 kB / 377.6 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.2059, allocations: 49.41 kB / 377.7 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.2061, allocations: 89.8 kB / 377.7 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.2064, allocations: 181.8 kB / 377.9 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004303/0.2069, allocations: 0.5482 MB / 378.5 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.2071, allocations: 97.03 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.2073, allocations: 225.3 kB / 378.8 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.2076, allocations: 264.9 kB / 379 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.584e-05/0.2077, allocations: 26.53 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.2078, allocations: 68.66 kB / 379.1 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.208, allocations: 100.4 kB / 379.2 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.2081, allocations: 199.6 kB / 379.4 MB, free: 41.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.2086, allocations: 0.5058 MB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2086, allocations: 0 / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2086, allocations: 1.312 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2086, allocations: 4 kB / 379.9 MB, free: 41.29 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.001238/0.2099, allocations: 0.731 MB / 380.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2099, allocations: 9.594 kB / 380.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.42e-05/0.21, allocations: 46.19 kB / 380.7 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.2103, allocations: 309.2 kB / 381 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.2103, allocations: 27.25 kB / 381.1 MB, free: 40.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.84e-05/0.2104, allocations: 34.5 kB / 381.1 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007391/0.2112, allocations: 442.8 kB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.2112, allocations: 5.25 kB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.2112, allocations: 11.25 kB / 381.5 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.2113, allocations: 13.12 kB / 381.5 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008473/0.2121, allocations: 458 kB / 382 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.214, allocations: 1.268 MB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006921/0.2147, allocations: 371.3 kB / 383.6 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/0.2151, allocations: 246.1 kB / 383.9 MB, free: 38.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.2152, allocations: 11.78 kB / 383.9 MB, free: 38.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.656e-05/0.2152, allocations: 37.25 kB / 383.9 MB, free: 38.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.2152, allocations: 0 / 383.9 MB, free: 38.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004447/0.2197, allocations: 2.26 MB / 386.2 MB, free: 36.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.2197, allocations: 55.84 kB / 386.2 MB, free: 36.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.2199, allocations: 250.6 kB / 386.5 MB, free: 36.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.2199, allocations: 45.69 kB / 386.5 MB, free: 36.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.22, allocations: 168.7 kB / 386.7 MB, free: 36.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.297e-05/0.2201, allocations: 165.6 kB / 386.8 MB, free: 36.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.2202, allocations: 98.23 kB / 386.9 MB, free: 36.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.2203, allocations: 342.8 kB / 387.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.2207, allocations: 233 kB / 387.5 MB, free: 35.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003956/0.2211, allocations: 303.1 kB / 387.8 MB, free: 35.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.2217, allocations: 423.7 kB / 388.2 MB, free: 34.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2217, allocations: 4 kB / 388.2 MB, free: 34.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001224/0.2229, allocations: 0.7585 MB / 389 MB, free: 33.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.223, allocations: 8 kB / 389 MB, free: 33.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.223, allocations: 0 / 389 MB, free: 33.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008453/0.2238, allocations: 0.5511 MB / 389.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.2241, allocations: 67.89 kB / 389.6 MB, free: 33.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.2258, allocations: 3.46 MB / 393.1 MB, free: 29.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.2263, allocations: 76.09 kB / 393.1 MB, free: 29.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.2263, allocations: 31.92 kB / 393.2 MB, free: 29.43 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.2265, allocations: 162.2 kB / 393.3 MB, free: 29.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.585e-05/0.2265, allocations: 35.56 kB / 393.4 MB, free: 29.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.2277, allocations: 0.7171 MB / 394.1 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2278, allocations: 4 kB / 394.1 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2278, allocations: 0 / 394.1 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2278, allocations: 11.92 kB / 394.1 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.2294, allocations: 1.267 MB / 395.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2294, allocations: 4 kB / 395.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.2297, allocations: 55.91 kB / 395.4 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007417/0.2304, allocations: 0.5255 MB / 395.9 MB, free: 26.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.2305, allocations: 15.98 kB / 396 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/0.2321, allocations: 3.439 MB / 399.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2321, allocations: 0 / 399.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/0.2447, allocations: 9.781 MB / 409.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.2449, allocations: 160.7 kB / 409.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.197e-05/0.245, allocations: 16 kB / 409.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.2454, allocations: 71.97 kB / 409.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.2456, allocations: 92.22 kB / 409.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.2457, allocations: 23.97 kB / 409.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001104/0.2458, allocations: 174 kB / 409.7 MB, free: 12 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.2458, allocations: 4.109 kB / 409.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006198/0.2464, allocations: 203.9 kB / 409.9 MB, free: 11.79 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002116/0.2466, allocations: 169.7 kB / 410.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.2478, allocations: 0.8065 MB / 410.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2478, allocations: 0 / 410.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006592/0.2485, allocations: 0.5369 MB / 411.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.2489, allocations: 68.16 kB / 411.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.2509, allocations: 1.715 MB / 413.2 MB, free: 8.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.2511, allocations: 0.8237 MB / 414 MB, free: 7.539 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.2512, allocations: 35.28 kB / 414.1 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.461e-05/0.2513, allocations: 31.42 kB / 414.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2513, allocations: 0 / 414.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of Templates: time 0.01444/0.2657, allocations: 12.63 MB / 426.7 MB, free: 10.86 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches