Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008159/0.0008161, allocations: 110.7 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002394/0.0002394, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1916, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002312/0.1939, allocations: 2.512 MB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1951, allocations: 0.9778 MB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.1952, allocations: 4 kB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.1954, allocations: 60.25 kB / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.1957, allocations: 133.2 kB / 411.2 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.1959, allocations: 137.3 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002933/0.1962, allocations: 0.5149 MB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.1963, allocations: 103.5 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1965, allocations: 223.2 kB / 412.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.1967, allocations: 251.1 kB / 412.4 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.1968, allocations: 28 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.1969, allocations: 67.97 kB / 412.5 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.197, allocations: 107.6 kB / 412.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.498e-05/0.1971, allocations: 85.52 kB / 412.7 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.1974, allocations: 411.9 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1974, allocations: 0 / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1974, allocations: 0 / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1974, allocations: 0 / 413.1 MB, free: 22.23 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00106/0.1985, allocations: 0.7291 MB / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.749e-05/0.1985, allocations: 8.031 kB / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.306e-05/0.1986, allocations: 47.44 kB / 413.9 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.1989, allocations: 317.3 kB / 414.2 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1989, allocations: 29 kB / 414.2 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.199, allocations: 36 kB / 414.2 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.1996, allocations: 438.3 kB / 414.7 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1997, allocations: 0 / 414.7 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.119e-05/0.1997, allocations: 16 kB / 414.7 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1997, allocations: 12 kB / 414.7 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007666/0.2005, allocations: 443.6 kB / 415.1 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.2023, allocations: 1.312 MB / 416.4 MB, free: 18.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007209/0.203, allocations: 411.4 kB / 416.8 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.2034, allocations: 238.1 kB / 417.1 MB, free: 18.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.2035, allocations: 4.438 kB / 417.1 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.344e-05/0.2035, allocations: 42.94 kB / 417.1 MB, free: 18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.2035, allocations: 4 kB / 417.1 MB, free: 18 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004399/0.2079, allocations: 2.338 MB / 419.4 MB, free: 15.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.093e-05/0.208, allocations: 59.84 kB / 419.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.2082, allocations: 270.7 kB / 419.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.2082, allocations: 45.7 kB / 419.8 MB, free: 15.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.2083, allocations: 168.7 kB / 420 MB, free: 14.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.317e-05/0.2084, allocations: 181.5 kB / 420.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.2084, allocations: 12 kB / 420.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.2085, allocations: 346.8 kB / 420.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.2089, allocations: 221 kB / 420.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003969/0.2093, allocations: 283.2 kB / 421 MB, free: 13.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.2096, allocations: 182.1 kB / 421.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.2096, allocations: 0 / 421.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001244/0.2109, allocations: 0.7235 MB / 421.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2109, allocations: 4 kB / 421.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.2109, allocations: 8.125 kB / 421.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008038/0.2117, allocations: 382.3 kB / 422.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.212, allocations: 75.89 kB / 422.4 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.2138, allocations: 3.425 MB / 425.8 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.2143, allocations: 108 kB / 425.9 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.2143, allocations: 20 kB / 425.9 MB, free: 8.684 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 (44): * Single equations (assignments): 41 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.2145, allocations: 173.7 kB / 426.1 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.2146, allocations: 39.53 kB / 426.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.2158, allocations: 0.716 MB / 426.8 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2158, allocations: 4 kB / 426.8 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.2159, allocations: 0 / 426.8 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2159, allocations: 11.98 kB / 426.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.2176, allocations: 1.283 MB / 428.1 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.2176, allocations: 0 / 428.1 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.2178, allocations: 59.91 kB / 428.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007281/0.2186, allocations: 354.4 kB / 428.5 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.2186, allocations: 19.97 kB / 428.6 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001691/0.2203, allocations: 3.429 MB / 432 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2203, allocations: 0 / 432 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.2219, allocations: 1.02 MB / 433 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.2221, allocations: 168.6 kB / 433.2 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.599e-05/0.2221, allocations: 16 kB / 433.2 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004711/0.2226, allocations: 103.9 kB / 433.3 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.2228, allocations: 108.3 kB / 433.4 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.2228, allocations: 23.98 kB / 433.4 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001296/0.223, allocations: 190 kB / 433.6 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.223, allocations: 3.938 kB / 433.6 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003982/0.2234, allocations: 116 kB / 433.7 MB, free: 444 kB / 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006638/0.224, allocations: 385.9 kB / 434.1 MB, free: 172 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.2254, allocations: 0.7851 MB / 434.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2254, allocations: 0 / 434.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008346/0.2263, allocations: 0.5306 MB / 435.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.2268, allocations: 76.47 kB / 435.5 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.2287, allocations: 1.239 MB / 436.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.229, allocations: 0.8124 MB / 437.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.712e-05/0.2291, allocations: 35.42 kB / 437.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2291, allocations: 0 / 437.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01025/0.2394, allocations: 9.344 MB / 446.9 MB, free: 3.25 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches